PDA

View Full Version : Combining Scripts



mossawi
06-26-2005, 05:36 PM
hi,

i liked to combine 2 scripts tofether but it keeps giving me a eror, is it possible to do it??

anyways the 2 scripts are the Thumbnail Viwer II & the left-right slideshow, would really appreciate any help.

by the way this is the part that gives me a eror:

edited:

leftrightslide[0]='<a href="#" onMouseover="modifyimage('dynloadarea', 0)"><img src="thumb_test1.jpg" border=0"></a>'

original:

leftrightslide[2]='<a href="http://..."><img src="thumb_test2.jpg" border=0></a>'

Twey
06-26-2005, 06:35 PM
Semicolon after the modifyimage() call Escape the single quotes (') by putting a backslash (\) in front of them (\') You close a double quote which isn't open after border=0, either take it out or put another before the 0. Not going to break the script, but you might want to close the <img> tag (<img src="..." onclick="..."/>)

mwinter
06-26-2005, 07:35 PM
Semicolon after the modifyimage() callAs is, it's not really necessary as there's just the one statement, but it doesn't hurt.


Not going to break the script, but you might want to close the <img> tag (<img src="..." onclick="..."/>)XHTML should be avoided unless you have a reason or a need to serve XHTML, and then it should only be served as application/xhtml+xml. Otherwise, just stick to HTML and its syntax.

What should be added is an alt attribute for that img element.

Mike