[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 06-23-2005, 05:16 PM   #1 (permalink)
NamePros Member
 
ctechguy's Avatar
 
Join Date: Jun 2005
Posts: 27
30.00 NP$ (Donate)

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, 03:31 PM   #2 (permalink)
NamePros Regular
 
Join Date: May 2005
Location: California
Posts: 506
848.69 NP$ (Donate)

Shockt is a glorious beacon of lightShockt is a glorious beacon of lightShockt is a glorious beacon of lightShockt is a glorious beacon of lightShockt is a glorious beacon of light


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.
Shockt is offline  
Old 06-24-2005, 04:23 PM   #3 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
 
Join Date: Jan 2005
Location: UK
Posts: 2,390
316.50 NP$ (Donate)

PoorDoggie 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, 11:00 AM   #4 (permalink)
NamePros Member
 
ctechguy's Avatar
 
Join Date: Jun 2005
Posts: 27
30.00 NP$ (Donate)

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, 01:31 PM   #5 (permalink)
NamePros Regular
 
Join Date: May 2005
Location: California
Posts: 506
848.69 NP$ (Donate)

Shockt is a glorious beacon of lightShockt is a glorious beacon of lightShockt is a glorious beacon of lightShockt is a glorious beacon of lightShockt is a glorious beacon of light


Not for your exact needs but look around the internet:
http://www.google.com/search?q=css+image+swap
Shockt is offline  
Old 06-26-2005, 02:33 PM   #6 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
 
Join Date: Jan 2005
Location: UK
Posts: 2,390
316.50 NP$ (Donate)

PoorDoggie 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:

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 09:00 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85