Click to See Complete Forum and Search --> : mixing javascript commands or javascript within javascript


dombrad
11-26-2003, 11:19 AM
Hi,

I'm trying to put in a Conveter Belt Slideshow (got the script from http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm

I've been trying to use the images as links which will open the larger versions in a new browser location using the following script:
<script>
function chgMainWinLoc( strPage ) {
parent.opener.document.location = strPage;
}
</script>
AND
<a class="two" href="#"onClick="window.open('image1.html','floatingwindow','toolbar=no,scrollbars=no,status=no,width=323,height=383' )"><image source="image1.jpg"></a>

I'm a bit of a novice with javascript, so I slotted it in where I figured it should work, but just got an error message when I tried to view it.

I guess it's probably just a misplaced character or something. I can supply the script I'm working on if it helps.

Can anybody help
Thanks
Dominic