Please help and if you change the code so that it works then please explain what you did so I can learn from this.

arthurakay

11-03-2009, 03:01 PM

There's probably more than a few things wrong that your script. For starters:

<SCRIPT language = "Javascript1.2">

"Javascript1.2" isn't a valid language value. "javascript" is.

But before you get any advice on the code, you've got to use your context clues.

1) Do you get any errors? What do they say? When do they appear?
2) Have you attempted to debug the code? Does any part of it work?

We're not here to simply write the code for you and then explain why it works. We're here to help *you* figure it out.

PS - This should have been posted in the JavaScript forum.

VIPStephan

11-03-2009, 03:05 PM

There's probably more than a few things wrong that your script. For starters:

<SCRIPT language = "Javascript1.2">

"Javascript1.2" isn't a valid language value. "javascript" is.

In fact, the language attribute itself isnít valid HTML (anymore). You should use <script type="text/javascript">.

Excavator

11-03-2009, 03:34 PM

Hi, I wish to make it so that when an image is rolled over it is displayed below, in another div but bigger. I would like it so that many images can do this.

e.g.

Image 1 Image 2 Image 3 Image 4 Image 5

Large Image 3
Please help and if you change the code so that it works then please explain what you did so I can learn from this.

Hello martynball,
If your interested in a CSS solution I have an example you could follow...
Have a look at http://nopeople.com/CSS/disjointed_rollover_photoalbum/index.html

You can google "disjointed rollover" for more examples.

martynball

11-03-2009, 05:34 PM

The original script worked. But cheers :)

And I will have a look at that website you linked me to, cheers :)

martynball

11-10-2009, 11:25 AM

The example which you gave me to look at is not really ideal. It just uses two images and when rolled over the image is re-sized.

I really need it to replace a image already existing, without defining every single image in the javascript. Because there would be a lot of images to reference which would make one long script.

Edit:
In Dreamweaver there is pre-written code to do a image swap. I can make it swap the image and do everything I want it to do, but the image it replaces it with is the full size, and I don't really want to resize all the images. So I was wondering if I could make the script replace the image with the content of the image rolled over instead?