Help - Search - Members - Calendar
Full Version: Disjointed rollover .swf
HTMLHelp Forums > Programming > Client-side Scripting
Zoee
Hi there, I have a javascript banner which creates a disjointed roll over on this page:
http://www.s252710280.websitehome.co.uk/primeholidays/

I want to replace the clear.jpg with this:

http://www.s252710280.websitehome.co.uk/pr...!!.html

The clear.jpg is referenced in the script and then again as in the main code as a 'holder'. I have no idea how to get this map in the place of the .jpg!

Thanks!!

Zoe
Christian J
This seems to be about client-side scripting, so I move it there.
Christian J
The rollover script just changes the SRC of the various existing images. To make it insert the markup required to load a Flash animation you must probably rewrite the script completely.
Zoee
QUOTE(Christian J @ Sep 10 2008, 11:49 AM) *

The rollover script just changes the SRC of the various existing images. To make it insert the markup required to load a Flash animation you must probably rewrite the script completely.


I have no idea how to do that!!
Christian J
If you only want to show the Flash movie as the default (and instead show the jpg images during the rollovers) maybe you can add the Flash embedding markup next to the IMG place holder, then hide the Flash markup and show the IMG placeholder during rollovers.
Frederiek
Or don't use the Flash, but create something similar to Stu Nicholls' Solar image map.
Zoee
I now have a code thats been created for me to correct this:
http://www.s252710280.websitehome.co.uk/primeholidays/
The flash is in a div tag but I need to align the div to the top left of the table or cell not the top left of the browser because the page is centered, can this be done and how?

Thanks!
pandy
I don't see any flash at all. wacko.gif
Zoee
http://www.s252710280.websitehome.co.uk/pr...ays/index1.html

The map is the blank space.

Thanks again!
Frederiek
The flash only shows a white box, probably causes by the html errors found by the online validator (links on top and bottom of this page).

Fix those first and then also go see http://alistapart.com/articles/flashsatay.
Zoee
I'll validate the page but I need to know how to position the flash in the div tag, is it possible to align it to the top left of the table no the browser?
Zoee
Is there not a way to align the div this way?

Thanks!
moo
QUOTE(Zoee @ Sep 22 2008, 01:23 PM) *

Is there not a way to align the div this way?

Thanks!

It's messy and I wouldn't usually advise doing so, but in answer to your question - try completely removing the top and left positions from the div "uniquename" so that it is not told where to position itself. It should then be held in place by the containing table-cell.

I'm not going to error-check it for you but you have defined the colspan attribute twice in the line:
CODE
<td colspan="2" height="60" width="341" align="left" colspan="2"> </td>    
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.