Swapimage - how when images not local?

  • cerio
  • Proficient
  • Proficient
  • User avatar
  • Posts: 263
  • Loc: UK

Post 3+ Months Ago

Hi.
I have thumbnail images on a site, which, when clicked, swap an image on another part of the page. I did it in Dreamweaver, which produced this code...

Code: [ Select ]
<td width="101"><img src="images/cropcos/thumcos/pdress.gif" width="100" height="100"  class="hand" onClick="MM_swapImage('astgraph','','images/cropcos/pdressbig.gif',0)"></td>


However, I have now moved the images, so they are no longer local but are stored online, on Photobucket. I can change the thumbnail image source easily, of course, but can't work out how to get the swapImage to work when the images are not local.

In the code below, you can see that I have changed the source for the thumbnail, which works fine. The larger version of the thumbnail image, used for the swapimage (seen in bold in the code below), is now at http://s453.photobucket.com/albums/qq25 ... essbig.gif but I can't work out how to get the swapImage to work using this new path.

Below is the code with new thumbnail path but the local swap image (in bold) still to be changed...

Code: [ Select ]
<td width="101"><img src="http://s453.photobucket.com/albums/qq256/astrellasite/images/costumethum/pdress.gif" width="100" height="100"  class="hand" onClick="MM_swapImage('astgraph','','images/cropcos/pdressbig.gif',0)"></td>


The new swapImage (currently- images/cropcos/pdressbig.gif) is now at http://s453.photobucket.com/albums/qq25 ... essbig.gif

So, can anyone tell me, please, how to change the swapImage part,
Code: [ Select ]
onClick="MM_swapImage('astgraph','','images/cropcos/pdressbig.gif',0)"
to use an image that is stored online and not locally? All my attemtpts have failed.

Regards,
Ceri
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • righteous_trespasser
  • Scuffle
  • Genius
  • User avatar
  • Posts: 6230
  • Loc: South-Africa

Post 3+ Months Ago

Code: [ Select ]
onClick="MM_swapImage('astgraph','','http://s453.photobucket.com/albums/qq256/astrellasite/images/costume/pdressbig.gif',0)"
  • cerio
  • Proficient
  • Proficient
  • User avatar
  • Posts: 263
  • Loc: UK

Post 3+ Months Ago

That's odd; I tried that, as it seemed the obvious thing to do, prior to posting my query here, but it didn't work but, when I saw you suggested it too, I tried again and now it does work.

Thank you.

Regards,
Cerio
  • righteous_trespasser
  • Scuffle
  • Genius
  • User avatar
  • Posts: 6230
  • Loc: South-Africa

Post 3+ Months Ago

hehe all good, sometimes things like that happen ...

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 33 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.