We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
JS problems.
Topic Started: Jun 29 2005, 08:05 AM (321 Views)
pingu2k4
Member
[ *  * ]
I want to host a file, and i want a prodpown affilliates box in the js file.

this is what i have got:


Code:
 


function go(form)
{
location=form.selectmenu.value
}

info="<form>" +
"<select name="selectmenu" onchange="go(this.form)">" +
"<option>--Affiliates--" +
"<option value="http://s7.invisionfree.com/webring/">Web Ring" +
"<option value="http://s10.invisionfree.com/youth_help/index.php">Youth Help" +
"</select>" +
"</form>"

document.write(info)




So, what have i done wrong?

I cant get it to work!!!!!!!!!!
Offline Profile Quote Post Goto Top
 
pingu2k4
Member
[ *  * ]
*BUMP*

Someone please answer!
Offline Profile Quote Post Goto Top
 
James
Live to Dream
[ *  *  *  *  *  *  * ]
Code:
 

function go(val)
{
location.href=val
}

info  = "<form>"
info+= "<select name='selectmenu' onchange='go(this.value)'>"
info+= "<option>--Affiliates--</option>"
info+= "<option value='http://s7.invisionfree.com/webring/'>Web Ring</option>"
info+= "<option value='http://s10.invisionfree.com/youth_help/index.php'>Youth Help</option>"
info+= "</select>"
info+= "</form>"

document.write(info)
Offline Profile Quote Post Goto Top
 
pingu2k4
Member
[ *  * ]
ok, thankyou soooooooo much James, i havent tried it yet, but will soon, thanks, your awesome!!!!!
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply