socajai
03-03-2009, 06:01 PM
hola,
first off, i'm not a programmer. i'm a musician, just trying to figure this out. so, supernewb question.
why does this script run only once? then i have to refresh the page to make it run again?
i'm trying to create a little popup with a sample clip. it works but only runs once.
i don't know how bad this code is. i read tutorials, and then messed around till it worked.
so how do i get it to keep running with each new song variable?
thanks a billion
<html>
<HEAD>
<SCRIPT language="JavaScript">
<!--hide
function newwindow(y,x)
{
var x="id"
newwindow=window.open(y,x,'width=300,height=200,resizable=yes');
return false;
}
//-->
</SCRIPT>
<Head>
<body>
<A HREF="javascript:newwindow('http://jon-ji.com/media/mp3/Mission.mp3','width=300,height=200,resizable=yes')" name="mission" id="mission"=>Click Here!</A>
<a href="javascript:newwindow('http://jon-ji.com/media/mp3/laces.mp3')" name="laces" id="laces"=>click here too</a>
</body>
</html>
first off, i'm not a programmer. i'm a musician, just trying to figure this out. so, supernewb question.
why does this script run only once? then i have to refresh the page to make it run again?
i'm trying to create a little popup with a sample clip. it works but only runs once.
i don't know how bad this code is. i read tutorials, and then messed around till it worked.
so how do i get it to keep running with each new song variable?
thanks a billion
<html>
<HEAD>
<SCRIPT language="JavaScript">
<!--hide
function newwindow(y,x)
{
var x="id"
newwindow=window.open(y,x,'width=300,height=200,resizable=yes');
return false;
}
//-->
</SCRIPT>
<Head>
<body>
<A HREF="javascript:newwindow('http://jon-ji.com/media/mp3/Mission.mp3','width=300,height=200,resizable=yes')" name="mission" id="mission"=>Click Here!</A>
<a href="javascript:newwindow('http://jon-ji.com/media/mp3/laces.mp3')" name="laces" id="laces"=>click here too</a>
</body>
</html>