Click to See Complete Forum and Search --> : stumbling through java...help?


platecstudios
08-21-2003, 01:37 PM
hi,

take a look at the script:

<html>
<head></head>
<body>
<a href="javascript:void(0);" onClick="doStuff();">Do Stuff</a>
<script>
function doStuff() {
window1 = window.open('http://www.platecstudios.com', 'applet', '');
window2 = window.open('http://66.28.100.138:8128/listen.pls', 'listenlink', '');
}
</script>
</body>
</head>

ok - how do I attatch the script to an image that exists on my page i.e. not the text link >Do Stuff< ?

I am trying to create a link that launches a media player and then opens another window that contains a java applet that serves jpgs from a webcam...

Thanks for any help,

Justin
Plate C Studios

diamonds
08-21-2003, 02:23 PM
Its not java, its javascript.
BIG diffrence.

And just because your script has javascript inside it does not mean your post goes in the javascript fourm.

Simply replace your text with any HTML:
including the IMG tag.

ask someone if you are still having problems.