Link to home
Start Free TrialLog in
Avatar of haddad05
haddad05Flag for United States of America

asked on

Adding a picture/link to web site

Greetings!
I am attempting to add a picture which will link to another site on my site, www.coyotemoonaz.com. I would like this picture to be placed on the left pane close to the top of the page. no programing experience so any help is appreciated.
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Hi haddad,

Which picture?  The left pane of what?  The question is a little hard to follow.
Avatar of haddad05

ASKER

The picture is not up there yet...I would like it on the left side above the menu and below the title...
Okay, the menu is an image too.  So place this new image above the menu and that should do what you want.  To place it, go into source code view and look for this line:

<td width="177"><img src="a_data/cmmenu2.gif" usemap="#Map" border="0" height="150" width="150" />

Click between the two tags, so the cursor is blinking between the ><

Now switch back to design view and without clicking on the page, do Insert | Image from the menu.  Select the image from the dialog.  

Done.
...ok did that. seemed to have worked except when visiting the site there is no picture there.
Now you have to upload all the pages and the image files to your web server.  Dreamweaver works locally, unless you have the local and remote servers set to be the same machine.
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ryancys,
I followed your suggestion and it worked only on the local machine...
it should works since it's a fullpath url, i'm afraid your server got some limitation/setting to prevent you from viewing the images...
ok it worked...now how can i get that pic to link to another site when clicked on?
>>now how can i get that pic to link to another site when clicked on?
you need to add and specify a hyperlink, like:

<a href="http://www.yahoo.com" target="_blank"><img src="http://www.valwest.com/coyotemoonaz/images/coyotemoonmap.bmp" border="0" height="353" width="463" /></a>


if you want to specify the opened window's size, you can try use javascript instead, like:

function openInCenter(theURL, myw, myh) {
      var X = ((screen.width/2)-(myw/2));
      var Y = ((screen.height/2)-(myh/2));      
      var myparams = "innerWidth=" + myw + ",innerHeight=" + myh + ",width=" + myw + ",height=" + myh + ",left=" + X + ",top=" + Y + ",screenX=" + X + ",screenY=" + Y;
      myparams += "alwaysLowered=0,alwaysRaised=1,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,noresize=1,,scrollbars=1,status=0,titlebar=1,toolbar=0,z-lock=1";      
      mypopup = window.open(theURL,"myPopupName",myparams);
}


<a href="http://www.yahoo.com" onClick="openInCenter(this.href, 840, 600);return false;"><img src="http://www.valwest.com/coyotemoonaz/images/coyotemoonmap.bmp" border="0" height="353" width="463" /></a>


hope this helps