slapdashwebdesigner Posted March 8, 2009 Share Posted March 8, 2009 okay i want to be able to have users click on tabs that change the content of a iframe <script type="text/javascript"> function changevar(ports) { var port = ports; } </script> <a href="javascript:changevar(28962)">COD4</a> | <a href="javascript:changevar(28960)">COD5</a> | <a href="javascript:changevar(28961)">ZOMBIES</a></h1> <script type="text/javascript"> // default var port=28962; // first part of the script document.write("<iframe src=\"http://cache.www.gametracker.com/components/html0/?host=68.34.211.225:"); // port- this should be changed when links clicked document.write(port); //second part document.write("&width=200&height=423&bgColor=000000&titleBgColor=101010&borderColor=000000&fontColor=FFFFFF&titleColor=FFFFFF&linkColor=990901&borderLinkColor=993201&showMap=1&showCurrPlayers=1&showTopPlayers=0&showBlogs=0\" frameborder=\"0\" scrolling=\"no\" width=\"200\" height=\"423\"></iframe>");</script> this does not work. Quote Link to comment Share on other sites More sharing options...
darkfreaks Posted March 8, 2009 Share Posted March 8, 2009 Fixed: var port=28962; // first part of the script document("<iframe src=\"http://cache.www.gametracker.com/components/html0/?host=68.34.211.225:"); // port- this should be changed when links clicked document(port); //second part document("&width=200&height=423&bgColor=000000&titleBgColor=101010&borderColor=000000&fontColor=FFFFFF&titleColor=FFFFFF&linkColor=990901&borderLinkColor=993201&showMap=1&showCurrPlayers=1&showTopPlayers=0&showBlogs=0\" frameborder=\"0\" scrolling=\"no\" width=\"200\" height=\"423\"></iframe>"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.