NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Image Swap

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 06-23-2005, 06:16 PM THREAD STARTER               #1 (permalink)
NamePros Member
 
ctechguy's Avatar
Join Date: Jun 2005
Posts: 27
ctechguy is an unknown quantity at this point
 



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
ctechguy is offline  
Old 06-24-2005, 04:31 PM   #2 (permalink)
NamePros Regular
 
Fork's Avatar
Join Date: May 2005
Location: California
Posts: 607
Fork has much to be proud ofFork has much to be proud ofFork has much to be proud ofFork has much to be proud ofFork has much to be proud ofFork has much to be proud ofFork has much to be proud ofFork has much to be proud of
 


Protect Our Planet Save a Life
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.
__________________
Kevin I.
Fork is offline  
Old 06-24-2005, 05:23 PM   #3 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
Join Date: Jan 2005
Location: UK
Posts: 2,408
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
 



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
PoorDoggie is offline  
Old 06-26-2005, 12:00 PM THREAD STARTER               #4 (permalink)
NamePros Member
 
ctechguy's Avatar
Join Date: Jun 2005
Posts: 27
ctechguy is an unknown quantity at this point
 



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>
I'll conceder doing css image swap Shockt. Do u have any tutorials or examples of this?
ctechguy is offline  
Old 06-26-2005, 02:31 PM   #5 (permalink)
NamePros Regular
 
Fork's Avatar
Join Date: May 2005
Location: California
Posts: 607
Fork has much to be proud ofFork has much to be proud ofFork has much to be proud ofFork has much to be proud ofFork has much to be proud ofFork has much to be proud ofFork has much to be proud ofFork has much to be proud of
 


Protect Our Planet Save a Life
Not for your exact needs but look around the internet:
http://www.google.com/search?q=css+image+swap
__________________
Kevin I.
Fork is offline  
Old 06-26-2005, 03:33 PM   #6 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
Join Date: Jan 2005
Location: UK
Posts: 2,408
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
 



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>
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:
????: NamePros.com http://www.namepros.com/programming/101314-image-swap.html

HTML Code:
<img name="main">
that should work
PoorDoggie is offline  
Closed Thread


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 09:05 PM
Image swap Help ctechguy Website Development 0 06-23-2005 07:51 AM
Image Hosting Site Grand Launch zweigoh For Sale / Advertising Board 0 12-08-2004 03:49 AM
photshop image as site template? LUCENT Graphic Design / Flash 3 12-31-2003 02:41 AM
making a curve in image and transparent blended layers scottee Graphic Design / Flash 2 09-24-2003 10:46 AM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 07:05 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger