Click to See Complete Forum and Search --> : Option's without javascript...??
Hi ,
actually i have done this that redirects automaticly...with onchange...So is it possible that the people that dont have javascript by clicking on the go button are redirect to the page !!! I cant make it :o)
<FORM NAME="form1">
<SELECT NAME="select" onChange="window.location=this.options[this.selectedIndex].value;" SIZE="1">
<OPTION VALUE="">--Selection--
<OPTION VALUE="aaa.html">aaa
<OPTION VALUE="bbb.html">bbb
</SELECT>
<input type="image" src="gif/arrow.gif" border="0" align="absmiddle">
</FORM>
Many thx
your help would be really appriciated
asch
:D
You'll have to use some sort of server side language. Here's how to do it in PHP:
<?PHP
if (count($_POST) > 0) {
header("Location:".$_POST['url']."");
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form action="<?PHP echo $_SERVER['PHP_SELF']; ?>" method="post">
<p><select name="url">
<option value="http://www.infinitypages.com">Infinity Web Design</option>
<option value="http://www.webdevfaqs.com">Web Dev FAQs</option>
<option value="http://www.w3c.org">W3C</option>
</select>
<input type="submit" name="submit" value="Submit"></p>
</form>
</body>
</html>
Yeah great works fine....really thank you ..!!
:) :) :) :) :) :)
I jusst found a bug with that per haps you can help me once more :o) !!
actually on the same page I have a little scroll bar script...wher it is definied ..3d collor & that stuff...called : init()
i call it in the body tag : with onload & style="overflow:auto"
The problem is that as soon that i have put the "php" it didnt work any more...it s really funny cause all other scripts are working fine do you have any idea ?
thx again...
asch
:D
Hmm... I don't really know what you mean. Could you post some code, or a link please?
Shur her it is..look the scrollbars should be white..an appear only if ther is "overflow"....
Here (http://www.aschwebdesign.ch/~derivativco)
hmm the code for scrollbar is external ther it is :
function init(){
document.body.style.scrollbarFaceColor="#FFFFFF";
document.body.style.scrollbarBaseColor="#D4F6FF";
document.body.style.scrollbarDarkShadowColor="#D4F6FF";
document.body.style.scrollbar3dLightColor="black";
document.body.style.scrollbarArrowColor="black";
document.body.style.scrollbarHighlightColor="#D4F6FF";
document.body.style.scrollbarShadowColor="black";
document.body.style.scrollbarTrackColor="#F3F3F3";
thx
You don't need JavaScript to style the scrollbars, you can use M$ proprietary CSS: http://msdn.microsoft.com/workshop/samples/author/dhtml/refs/scrollbarColor.htm
Yeah i have tried it this way but still does not work...
Do you have any other idea ?
thx
:D