PDA

View Full Version : Can someone help me fix this???


macpherson
02-16-2003, 10:18 PM
I got the script I need for my random link but now I have to scripts clashing and I can't find it can someone please help the two codes are: <select name="myjumpbox" align="right"
OnChange="window.open(jump2.myjumpbox.options[selectedIndex].value)"> and:
<INPUT TYPE="text" VALUE=" WHERE TO? " NAME="goTo"
onClick="window.goToUrl()">
</FORM></p> Thanks also if you need the beginning of the second code the part that was in the head let me know and I will post it but I may dissapear from here for about a week after tomorrow sorry about that.

beetle
02-17-2003, 06:07 AM
We'd definitely need to see the code in the <head>

macpherson
02-26-2003, 12:30 PM
Sorry it took me so long here it what is in the head.<SCRIPT LANGUAGE="JavaScript">

<!-- begin
var startTime =null;
var timerID =null;
var initial =new Date();
var pos =0;
var menuItem =null;

function initArray() {
this.length = initArray.arguments.length
for (var i = 0; i < this.length; i++) {
this[i+1] = initArray.arguments[i]
}
}

function parsemenuItem(data,num) {
for(var i=0;i<data.length;i++) {
if(data.substring(i,i+1)=="|") break;
}
if (num==0) return(data.substring(0,i));
else return(data.substring(i+1,data.length));
}

function startTimer() {
initial = new Date();
startTime=initial.getTime();
stopTimer();
menuItem = new initArray("Netscape|http://www.netscape.com",
"Microsoft|http://www.microsoft.com",
"IBM|http://www.ibm.com",
"Yahoo|http://www.yahoo.com",
"Excite|http://www.excite.com",
"Hotbot|http://www.hotbot.com",
"GrapeJam|http://www.grapejam.com",
"Email|mailto:rzeitel@mars.superlink.net"
);
showTimer();
}

function stopTimer() {
timerID=null;
menuItem=null;
//clearTimeout(timerID);
}

function showTimer() {
pos= (pos == menuItem.length) ? 1 : pos + 1;
document.forms[0].elements[0].value=parsemenuItem(menuItem[pos],0);

timerID=window.setTimeout('showTimer()',1000);
}

function goToUrl() {
//parent.welcome.location=parsemenuItem(menuItem[pos],1);
this.location=parsemenuItem(menuItem[pos],1);
return (false);
}
// end -->

</SCRIPT>