| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Member | Image Swap 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 |
| |
| | #2 (permalink) |
| NamePros Regular | 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.
__________________ :music: Kevin Tahoe Cabins Lake Tahoe Cabins Diabetes Recipes Image Uploader Photoshop Tricks Chests of Drawers |
| |
| | #4 (permalink) |
| NamePros Member | I didn't under stand what to do so i'll give u my code with my url this time. HTML Code: <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> |
| |
| | #5 (permalink) |
| NamePros Regular | Not for your exact needs but look around the internet: http://www.google.com/search?q=css+image+swap
__________________ :music: Kevin Tahoe Cabins Lake Tahoe Cabins Diabetes Recipes Image Uploader Photoshop Tricks Chests of Drawers |
| |
| | #6 (permalink) |
| Soon to be RICHdoggie! | HTML Code: <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> HTML Code: <img name="main"> |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What Keywords? | spy69 | Search Engines | 5 | 06-28-2005 08:05 PM |
| Image swap Help | ctechguy | Website Development | 0 | 06-23-2005 06:51 AM |
| Image Hosting Site Grand Launch | zweigoh | For Sale / Advertising Board | 0 | 12-08-2004 02:49 AM |
| photshop image as site template? | LUCENT | Graphic Design / Flash | 3 | 12-31-2003 01:41 AM |
| making a curve in image and transparent blended layers | scottee | Graphic Design / Flash | 2 | 09-24-2003 09:46 AM |