| | |
Image Swap Problems
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2005
Posts: 4
Reputation:
Solved Threads: 0
I'm trying to make a website that has a block of about 56 colors off to the right of a main image of a dress. You click a color block and it changes the dress to the picture of the dress in the color clicked.
I cannot find any script anywhere that provides for this... is there an example of such a script that I can adapt for this use?
I'm a Javascript noob so any help would be appreciated.
Thanks!
I cannot find any script anywhere that provides for this... is there an example of such a script that I can adapt for this use?
I'm a Javascript noob so any help would be appreciated.
Thanks!
•
•
Join Date: Dec 2004
Posts: 1,655
Reputation:
Solved Threads: 35
Look at some of the code provided in thread:
http://www.daniweb.com/techtalkforums/thread29187.html
That shows how to RANDOMLY or SEQUENTIALLY alter images, but you should be able to adapt the code.
http://www.daniweb.com/techtalkforums/thread29187.html
That shows how to RANDOMLY or SEQUENTIALLY alter images, but you should be able to adapt the code.
•
•
Join Date: Jul 2005
Posts: 4
Reputation:
Solved Threads: 0
the page in question is at http://jamesmeister.com/1914/
the boxes should link to other images... like the red swatch should make the main image turn into 1914_clr.jpg
the boxes should link to other images... like the red swatch should make the main image turn into 1914_clr.jpg
If you have dreamweaver (and still haven't found an answer). Give the image you wish to change a instance name (such as dress). Then click on the coloured box and select windows>behaviour panel. In this click on the plus sign and click swap image. This will bring up a long list of images, choose the one that says "dress" (the instance name of the image you want to change). Then browse for the image you want to display there instead. Also make sure you have swap image restore selected in this dialog box.
Once you have done that when you rollover that colour the dress will change image.
Good Luck
Once you have done that when you rollover that colour the dress will change image.
Good Luck
•
•
Join Date: Apr 2007
Posts: 1
Reputation:
Solved Threads: 0
Roryt,
Thank you sooo much for this important piece of information. I had been searching the web for a while with no luck for this exact info. Dreamweaver's Help was also lacking. I often found tidbits of info but not enough to get the effect I wanted. I even found someone on the web who stated that it was not possible to do this in Dreamweaver.
Thanks to you I was able to get my photographer's website structured the way I had envisioned it.
Again, Grateful that you know your stuff and share it with others,
Vickie
www.mikephotography.com
Thank you sooo much for this important piece of information. I had been searching the web for a while with no luck for this exact info. Dreamweaver's Help was also lacking. I often found tidbits of info but not enough to get the effect I wanted. I even found someone on the web who stated that it was not possible to do this in Dreamweaver.
Thanks to you I was able to get my photographer's website structured the way I had envisioned it.
Again, Grateful that you know your stuff and share it with others,
Vickie
www.mikephotography.com
•
•
•
•
If you have dreamweaver (and still haven't found an answer). Give the image you wish to change a instance name (such as dress). Then click on the coloured box and select windows>behaviour panel. In this click on the plus sign and click swap image. This will bring up a long list of images, choose the one that says "dress" (the instance name of the image you want to change). Then browse for the image you want to display there instead. Also make sure you have swap image restore selected in this dialog box.
Once you have done that when you rollover that colour the dress will change image.
Good Luck
![]() |
Similar Threads
- Image Swap help (HTML and CSS)
- Image swap behaviour from Dreamweaver no longer works once uploaded (Site Layout and Usability)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Which function to use for inserting string on a timer?
- Next Thread: How to insert a div using javascript?
| Thread Tools | Search this Thread |
acid2 ajax ajaxcode ajaxhelp animate automatically beta box bug calendar captcha cart checkbox child class column cookies createrange() css cursor decimal design dom download dropdown editor element engine enter error events explorer file focus form forms frameworks google gwt html htmlform ie8 iframe image() images index internet java javascript jawascriptruntimeerror jquery jsf jsfile jump listbox math matrixcaptcha menu microsoft mimic mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent pdf php player post problem progressbar prototype rated rating regex runtime scale scroll search select session shopping size sql star starrating stars text textarea validation w3c web website window windowofwords windowsxp wysiwyg xml \n






