leequalls Posted May 23, 2009 Share Posted May 23, 2009 I have the following code that is used to change the background style and images it works fine in plain html but when I put it on my php pages it does not load the pages right any ideas how to get this to work? <select name='switchcontrol' size='1' onChange='chooseStyle(this.options[this.selectedIndex].value, 60)'> <option value='none' selected='selected'>Default Style</option> <option value='deep'>Deep Green</option> Thanks Link to comment https://forums.phpfreaks.com/topic/159393-php-java/ Share on other sites More sharing options...
Cosizzle Posted May 23, 2009 Share Posted May 23, 2009 eh? Are you echoing it out within PHP? Link to comment https://forums.phpfreaks.com/topic/159393-php-java/#findComment-840733 Share on other sites More sharing options...
waynew Posted May 23, 2009 Share Posted May 23, 2009 JavaScript != Java Also, please provide more information on what you're doing with it on your PHP page. Link to comment https://forums.phpfreaks.com/topic/159393-php-java/#findComment-840736 Share on other sites More sharing options...
leequalls Posted May 23, 2009 Author Share Posted May 23, 2009 yes I have used it in echo(" "); and print " "; Link to comment https://forums.phpfreaks.com/topic/159393-php-java/#findComment-840741 Share on other sites More sharing options...
waynew Posted May 23, 2009 Share Posted May 23, 2009 Post the resulting HTML of your page by copying and posting the source of it here. Link to comment https://forums.phpfreaks.com/topic/159393-php-java/#findComment-840743 Share on other sites More sharing options...
Cosizzle Posted May 23, 2009 Share Posted May 23, 2009 JavaScript != Java Also, please provide more information on what you're doing with it on your PHP page. aaaah... had a nice chuckle over that we can all thank netscape for this. Link to comment https://forums.phpfreaks.com/topic/159393-php-java/#findComment-840824 Share on other sites More sharing options...
leequalls Posted May 23, 2009 Author Share Posted May 23, 2009 This is the source code everything after the javascript code does not show on the web page <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Radio Artist Panel v3</title> <meta http-equiv="content-type" content="charset=UTF-8"> <link rel="StyleSheet" href="style.css" type="text/css" /> <link rel="alternate stylesheet" type="text/css" media="screen" title="deep" href="style_deep.css" /> <script type="text/javascript" src="checkbox.js"></script> <script type="text/javascript" src="styleswitcher.js"></script> </head> <body> <div id=center> <div id=header2><table border=0><tr><td><div id=logo></div> </td><td><font size=5 color=#ffffff>Record Lable & Artist Panel</font></td></tr></table> </div> <div id=amessage> <marquee><font color=black><b><i></b></i></font></marquee> </div> <div id=content> <div id=menu><div id=menucontents> <div class=title>System</div> <b>IP: </b><br/><b>User: </b><br/><b>Rank: </b><br/><b>Panel Version:</b> 3.0.3<br/><p></p> <div class=title>Style</div><center> <select name='switchcontrol' size='1' onChange='chooseStyle(this.options[this.selectedIndex].value, 60)'> <option value='none' selected='selected'>Default Style</option> <option value='deep'>Deep Green</option> </form></center> <p></p> <div class=title>Radio</div> -<a href=art.php>Home</a><br/> -News<br/> -Rules<br/> -Staff List<br/> -Staff Chat<br/> -Server Details<br/> -Contact Admin<br/> -<a href=index.php?logout>Logout</a><br/> <p></p> <div class=title>Tools</div> -<a href=art.php?p=upload>Upload Songs</a><br/> -<a href=art.php?p=played>Songs Played</a><br/> <p></p> <div class=title>Messaging</div> -View Inbox (0)<br/> -New Message<br/> <p></p> <div class=title>Your Account</div> -My Notes<br/> -Edit Profile<br/> -View Profile<br/> -Change Password<br/> </div> </div> <div id=main> <center> Welcome <b></b>,<br/> you are a(n) <b></b>.<p> <p><br><p> </center> </div> </div></div> <div id=footer></div></div> </body> </html> Link to comment https://forums.phpfreaks.com/topic/159393-php-java/#findComment-840832 Share on other sites More sharing options...
leequalls Posted May 23, 2009 Author Share Posted May 23, 2009 I figured out the problem thanks for the help Link to comment https://forums.phpfreaks.com/topic/159393-php-java/#findComment-840844 Share on other sites More sharing options...
jackpf Posted May 23, 2009 Share Posted May 23, 2009 Care to enlighten us? Link to comment https://forums.phpfreaks.com/topic/159393-php-java/#findComment-840847 Share on other sites More sharing options...
jkewlo Posted May 24, 2009 Share Posted May 24, 2009 Care to enlighten us? lol Link to comment https://forums.phpfreaks.com/topic/159393-php-java/#findComment-841037 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.