Image swap behaviour from Dreamweaver no longer works once uploaded

Please support our Site Layout and Usability advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Jul 2005
Posts: 4
Reputation: paulkaye is an unknown quantity at this point 
Solved Threads: 0
paulkaye paulkaye is offline Offline
Newbie Poster

Image swap behaviour from Dreamweaver no longer works once uploaded

 
0
  #1
Jul 6th, 2005
I am currently designing a site using Dreamweaver MX:

http://www.conceptwheel.com

The thumbnails on some pages have image swap behaviors assigned.

1. They swap on mouseover to an outlined image
2. They swap on mouseout back to the original
3. They swap on click the central image to a large version of the thumb.

They do this ok when I preview (Dreamweaver F12) but not now they are on the web. Interestingly, they do seem to replace the 'please click' image with nothing instead!!!

I've looked everywhere but I can't find an answer to this one - I hope one of you guys can help?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,171
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 479
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: Image swap behaviour from Dreamweaver no longer works once uploaded

 
0
  #2
Jul 7th, 2005
Hi Paul,
it is nice and easy to develop page in dreamweaver, but you always get in trouble if you do not understand basic principle of HTML, CSS and little of scripting.
Don't worry I not gone bully you over that, will try to help you if possible. Last year I had had similar problem when my teacher rush me with my final work on project and I was forced to use Dreamweaver (still prefer typing me code).
For this purpose I used catalogues.htm from your site. Go to deamweaver and Design view, click on first thumbnail which id is "thumbvgcatalogue2", then go to Code view and you see this.

[html]<A onmouseover="MM_swapImage('thumbmwcatalogue1','','/images/catalogues/thumbnails/thumbmwcatalogue1pink.jpg',1)"
onclick="MM_swapImage('blankimage','','/images/catalogues/mwcatalogue1.jpg',1)"
onmouseout="MM_swapImage('thumbmwcatalogue1','','/images/catalogues/thumbnails/thumbmwcatalogue1.jpg',1)"
href="javascript:;">
<IMG id=thumbmwcatalogue1 height=95 src=""
width=100 border=0 name=thumbmwcatalogue1></A>[/html]

Have close look at image tag "IMG". Is there anything wrong? Something missing?

You are missing source image for first loading. src="/images/catalogues/thumbnails/thumbvgcatalogue2.jpg"
That should do it for you now. Any more troubles let me know
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 4
Reputation: paulkaye is an unknown quantity at this point 
Solved Threads: 0
paulkaye paulkaye is offline Offline
Newbie Poster

Re: Image swap behaviour from Dreamweaver no longer works once uploaded

 
0
  #3
Jul 7th, 2005
Hi Peter,

Thanks for your help! I actually had no HTML knowledge before I messed around with dreamweaver so I'm kinda learning backwards! I think a lot of the problems with this site are down to the fact that I initially used a template and then moved the site on my HD. That seems to have created a bunch of HD-specific URLs.

Anyway, regarding what you suggested, I have done it for the catalogues page but am confused as to what you say it will solve. Were you having problems viewing the original thumbnail image? Some people say there is a problem viewing the thumbs until mouseover, some people say there is not. I suppose that what you suggested would solve this problem as the original image url was wrong but after mouseover and mouseout, it would rectify itself. So that may solve that problem.

- Can you let me know if it's viewing correctly in this respect now?

BUT
The other problem (quite a big one!) is that the central image should change when a thumb is clicked. It works on my computer and it works on my sister-in-law's mac but not on her PC!!! Any ideas about that one? Let me outline how I've done all of these 'behaviours'.

Initial state = thumbxxx.jpg
Mouseover => thumbxxxpink.jpg
Mouseout => thumbxxx.jpg
Click = "blankimage" (central 'please click... image) => xxx.jpg

I did it like this as using dreamweaver's 'restore image on mouseout' restored ALL swaps, including the main picture. I messed around till I got this method. What is interesting is that the original central image ("blankimage") disappears but is not replaced! If you look at the "corporate branding" page, the original image is a collage and this too disappears not to be replaced.

Any solutions there?

Originally Posted by peter_budo
Hi Paul,
it is nice and easy to develop page in dreamweaver, but you always get in trouble if you do not understand basic principle of HTML, CSS and little of scripting.
Don't worry I not gone bully you over that, will try to help you if possible. Last year I had had similar problem when my teacher rush me with my final work on project and I was forced to use Dreamweaver (still prefer typing me code).
For this purpose I used catalogues.htm from your site. Go to deamweaver and Design view, click on first thumbnail which id is "thumbvgcatalogue2", then go to Code view and you see this.

[html]<A onmouseover="MM_swapImage('thumbmwcatalogue1','','/images/catalogues/thumbnails/thumbmwcatalogue1pink.jpg',1)"
onclick="MM_swapImage('blankimage','','/images/catalogues/mwcatalogue1.jpg',1)"
onmouseout="MM_swapImage('thumbmwcatalogue1','','/images/catalogues/thumbnails/thumbmwcatalogue1.jpg',1)"
href="javascript:;">
<IMG id=thumbmwcatalogue1 height=95 src=""
width=100 border=0 name=thumbmwcatalogue1></A>[/html]

Have close look at image tag "IMG". Is there anything wrong? Something missing?

You are missing source image for first loading. src="/images/catalogues/thumbnails/thumbvgcatalogue2.jpg"
That should do it for you now. Any more troubles let me know
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,171
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 479
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: Image swap behaviour from Dreamweaver no longer works once uploaded

 
0
  #4
Jul 7th, 2005
Well you are the lucky one from unlucky people, in your case dreamweaver went crazy as you been playing around with image swaping.
There is something wrong with script logic in "MM_swapImage", and I can't figure out what.
The thing is, when you click on thumbnail, central image is cleared and nothing appear. However if you try to see if the image exist you will find it, example :

http://www.conceptwheel.com/images/c...brookwade1.jpg

then go back and click on same thumbnail and your image appear.

What I can sugest is to clear your HTML code of all scripting and save, than again build all behaviors.

To do so, delete whole SCRIPT section in head of html document and delete this parts

<A onmouseover="MM_swapImage('thumbbrookwade1','','
/images/catalogues/thumbnails/thumbbrookwade1pink.jpg',1)"
onclick="MM_swapImage('blankimage','','
/images/catalogues/brookwade1.jpg',1)"
onmouseout="MM_swapImage('thumbbrookwade1','','
/images/catalogues/thumbnails/thumbbrookwade1.jpg',1)"
href="javascript:;"> </A>

which are attached to your thumbnails.

This only thing what I can think of, other solutions are to complex without any knowlege of scripting.

Let me know how it whent on
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 4
Reputation: paulkaye is an unknown quantity at this point 
Solved Threads: 0
paulkaye paulkaye is offline Offline
Newbie Poster

Re: Image swap behaviour from Dreamweaver no longer works once uploaded

 
0
  #5
Jul 7th, 2005
I'll try it for one page and see how it goes - I'll let you know when it's done. Thanks for the advice!
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 4
Reputation: paulkaye is an unknown quantity at this point 
Solved Threads: 0
paulkaye paulkaye is offline Offline
Newbie Poster

Re: Image swap behaviour from Dreamweaver no longer works once uploaded

 
0
  #6
Jul 8th, 2005
Ok, what I've actually been doing is rebuilding the page from scratch. It's an interesting quirk in dreamweaver I think. Have a look at my posting in another forum...

http://www.techsupportforum.com/show...930#post298930


Paul
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Site Layout and Usability Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC