welly75
05-03-2006, 07:17 AM
i wish anyone could help me in this could that i need it at my work its related to make an array of links that after u click start it make an array of links that start to slide in the main window of the frame and every number of seconds it bring a new link the problem is i want to add something to user to can add it to the link that will start to slide for example if i have a web site containing a data for every month jan feb mar april .... dec and i want to start the slide show from this link www.domain/month/date i want the use to can add the month and date as it desired i have a code and wish someone to help me in it .
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1256">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Ronnie T. Moore, Editor -->
<!-- Idea by: Selvi Narayanan -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
site = "http://leagues.games.yahoo.com"; // Do not include the final "/"
function combineMenus(frm, menu1, menu2) {
with (frm) {
str = menu1.options[menu1.selectedIndex].value;
str1 = menu2.options[menu2.selectedIndex].value;
url = site + "/" + str +"/" + str1;
parent.main.location.href = url;
}
}
// End -->
</script>
</HEAD>
<BODY>
<center>
<form name=menufrm>
<select name=menu1>
<option value="">Make</option>
<option value="league">league</option>
<option value="Chevy">Chevy</option>
<option value="Toyota">Toyota</option>
</select>
<select name=menu2>
<option value="">Year</option>
<option value="setarehs_palace">setarehs_palace</option>
<option value="1999">1999</option>
<option value="2000">2000</option>
</select>
<input type=button value="Select" onClick="combineMenus(this.form, this.form.menu1, this.form.menu2)">
</center>
<form name="autoSumForm">
<input type=text name="firstBox" value="" >
<input type=text name="secondBox" value="" >
<script language="JavaScript" type="text/javascript">
<!-- Begin
function combineMenus(frm, menu1, menu2) {
with (frm) {
str = menu1.options[menu1.selectedIndex].value;
str1 = menu2.options[menu2.selectedIndex].value;
url = site + "/" + str +"/" + str1;
parent.main.location.href = url;
}}
str1 = menu2.options[menu2.selectedIndex].value;
var myvariable = document.autoSumForm.firstBox.value;
var repeatshow = 0; // 1 = yes, 0 = no
var timedelay = 15000; // time in milliseconds, 15000 = 15 secs
var A = "http://domain.com";
var page = new Array(
"web-slideshow-demo2.html"+str1,
"web-slideshow-demo3.html"
); // note no comma after last page!
// note no comma after last page!
// your "the end" page. Necessary if repeatshow = 0;
var endpage = "the-end.html";
var slidenum = 0;
var slidecount = page.length;
var timerID = 0;
var win2;
function showSlideShow() {
slidenum++;
if (slidenum < slidecount+1) {
parent.main.location.href = page[slidenum-1];
}
if (slidenum == slidecount+1) { // if finished
if (repeatshow) {
slidenum = 0;
timerID = setTimeout('showSlideShow()', timedelay)
}
else parent.main.location.href = endpage;
}
else timerID = setTimeout('showSlideShow()', timedelay);
}
// End -->
</SCRIPT>
<BR>
<BR>
<BR>
<BR>
<A onclick=clearTimeout(timerID)
href="javascript:showSlideShow();">start making</A><BR><br>
</p>
</form>
</CENTER>
</BODY></HTML>
......................................................
that was my code i wanna the menu to work with the link in that line
var page = new Array(
"web-slideshow-demo2.html"+str1,
here is the main problem how to make the array links to can read what users have choosen in the menu to be a part from the link in my example here i want the link to get what user have choosen either from the menus or the text box this what i cant do ...........
wish anybody to help me
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1256">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Ronnie T. Moore, Editor -->
<!-- Idea by: Selvi Narayanan -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
site = "http://leagues.games.yahoo.com"; // Do not include the final "/"
function combineMenus(frm, menu1, menu2) {
with (frm) {
str = menu1.options[menu1.selectedIndex].value;
str1 = menu2.options[menu2.selectedIndex].value;
url = site + "/" + str +"/" + str1;
parent.main.location.href = url;
}
}
// End -->
</script>
</HEAD>
<BODY>
<center>
<form name=menufrm>
<select name=menu1>
<option value="">Make</option>
<option value="league">league</option>
<option value="Chevy">Chevy</option>
<option value="Toyota">Toyota</option>
</select>
<select name=menu2>
<option value="">Year</option>
<option value="setarehs_palace">setarehs_palace</option>
<option value="1999">1999</option>
<option value="2000">2000</option>
</select>
<input type=button value="Select" onClick="combineMenus(this.form, this.form.menu1, this.form.menu2)">
</center>
<form name="autoSumForm">
<input type=text name="firstBox" value="" >
<input type=text name="secondBox" value="" >
<script language="JavaScript" type="text/javascript">
<!-- Begin
function combineMenus(frm, menu1, menu2) {
with (frm) {
str = menu1.options[menu1.selectedIndex].value;
str1 = menu2.options[menu2.selectedIndex].value;
url = site + "/" + str +"/" + str1;
parent.main.location.href = url;
}}
str1 = menu2.options[menu2.selectedIndex].value;
var myvariable = document.autoSumForm.firstBox.value;
var repeatshow = 0; // 1 = yes, 0 = no
var timedelay = 15000; // time in milliseconds, 15000 = 15 secs
var A = "http://domain.com";
var page = new Array(
"web-slideshow-demo2.html"+str1,
"web-slideshow-demo3.html"
); // note no comma after last page!
// note no comma after last page!
// your "the end" page. Necessary if repeatshow = 0;
var endpage = "the-end.html";
var slidenum = 0;
var slidecount = page.length;
var timerID = 0;
var win2;
function showSlideShow() {
slidenum++;
if (slidenum < slidecount+1) {
parent.main.location.href = page[slidenum-1];
}
if (slidenum == slidecount+1) { // if finished
if (repeatshow) {
slidenum = 0;
timerID = setTimeout('showSlideShow()', timedelay)
}
else parent.main.location.href = endpage;
}
else timerID = setTimeout('showSlideShow()', timedelay);
}
// End -->
</SCRIPT>
<BR>
<BR>
<BR>
<BR>
<A onclick=clearTimeout(timerID)
href="javascript:showSlideShow();">start making</A><BR><br>
</p>
</form>
</CENTER>
</BODY></HTML>
......................................................
that was my code i wanna the menu to work with the link in that line
var page = new Array(
"web-slideshow-demo2.html"+str1,
here is the main problem how to make the array links to can read what users have choosen in the menu to be a part from the link in my example here i want the link to get what user have choosen either from the menus or the text box this what i cant do ...........
wish anybody to help me