Dynadot โ€” .com Registration $8.99

Image Swap

Spaceship Spaceship
Watch

ctechguy

Established Member
Impact
0
I have a top frame with thumbnails and a lower frame name ="main" where i want the image to enlarge.

<a href="#" onMouseDown="MM_swapImage('main','','large pic address',0)"><img src="thumbnail pic address" name="Image1" width="130" height="97" border="0">

I left out my address for security reasons

Main is also the pic i'm replacing

How do i tell it what frame the pic to replace is:?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
I suggest moving away from frames (as they can negatively effect search engine bots' ability to retrieve information from your page) and use a CSS image swap. Its much more widely compatible than JavaScript and wont hurt your ability to be spidered.
 
0
•••
tryis:

Code:
<img src="thumbnail pic address" name="Image1" width="130" height="97" border="0" onMouseOver="other_image.src='BIG PICCY URL'" />
<br />
<img name="other_image" />

that should work
 
0
•••
I didn't under stand what to do so i'll give u my code with my url this time.
HTML:
<table width="100%"  border="0">
  <tr>
    <th scope="col"><a href="#" onMouseDown="MM_swapImage('main','','http://www.krugferd.net/users/ctechguy/pics/photogallery/pic1.jpg',0)"><img src="http://www.krugferd.net/users/ctechguy/pics/photogallery/tn/pic1.jpg" name="Image1" width="130" height="97" border="0"></a></th>
    <th scope="col"><a href="#" onMouseDown="MM_swapImage('main','','http://www.krugferd.net/users/ctechguy/pics/photogallery/pic2.jpg',0)"><img src="http://www.krugferd.net/users/ctechguy/pics/photogallery/tn/pic2.jpg" name="Image2" width="130" height="97" border="0"></a></th>
    <th scope="col"><a href="#" onMouseDown="MM_swapImage('main','','http://www.krugferd.net/users/ctechguy/pics/photogallery/pic3.jpg',0)"><img src="http://www.krugferd.net/users/ctechguy/pics/photogallery/tn/pic3.jpg" name="Image3" width="130" height="97" border="0"></a></th>
    <th scope="col"><a href="#" onMouseDown="MM_swapImage('main','','http://www.krugferd.net/users/ctechguy/pics/photogallery/pic4.jpg',0)"><img src="http://www.krugferd.net/users/ctechguy/pics/photogallery/tn/pic4.jpg" name="Image4" width="130" height="97" border="0"></a></th>
    <th scope="col"><a href="#" onMouseDown="MM_swapImage('main','','http://www.krugferd.net/users/ctechguy/pics/photogallery/pic5.jpg',0)"><img src="http://www.krugferd.net/users/ctechguy/pics/photogallery/tn/pic5.jpg" name="Image5" height="97" border="0"></a></th>
  </tr>
</table>

I'll conceder doing css image swap Shockt. Do u have any tutorials or examples of this?
 
0
•••
0
•••
HTML:
<table width="100%"  border="0">
  <tr>
    <th scope="col"><img src="http://www.krugferd.net/users/ctechguy/pics/photogallery/tn/pic1.jpg" name="Image1" width="130" height="97" border="0" onClick="main.src='http://www.krugferd.net/users/ctechguy/pics/photogallery/pic1.jpg'></th>
  </tr>
</table>

I can't be bothered to do the rest of the images, but you get the idea. Now instead of having an iframe (which I assume you have) change it to an image:

HTML:
<img name="main">

that should work
 
0
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Appraise.net
Unstoppable Domains
Domain Recover
DomainEasy โ€” Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back