gintjack Posted September 12, 2010 Share Posted September 12, 2010 Can anyone convert this <html> <body> <script type='text/javascript'> var currenttime = 'August 04, 2010 06:56:51' var montharray=new Array('Jan','Feb','March','April','May','June','July','Aug','Sept','Oct','Nov','Dec') var serverdate=new Date(currenttime) function padlength(what){ var output=(what.toString().length==1)? '0'+what : what return output } function displaytime(){ serverdate.setSeconds(serverdate.getSeconds()+1) var timestring=padlength(serverdate.getHours())+':'+padlength(serverdate.getMinutes())+':'+padlength(serverdate.getSeconds()) document.getElementById('servertime').innerHTML=timestring+' MST ' } window.onload=function(){ setInterval('displaytime()', 1000) } </script> </body> </html> <?php // Page Colors $backgroundColor = "#3366FF"; $tableOutline = "#000000"; $topAndBottomBG = "#003399"; $topAndBottomText = "#FFFFFF"; $middleBG = "#99CCFF"; $middleTEXT = "#000000"; $reallyLight = "#DEF2FF"; $menuColor = "#FFFFFF"; $maincellColor = "#FFFFFF"; $maincellText = "#000000"; $menulinkColor = "#003399"; $mainlinkColor = "#003399"; $bottomlinkColor = "#FFFFFF"; // End Page Colors // Ranks ect if ($rank >= 5) { $admin_line .= "<p align=center>Admin Stuff:<br><a class=menu href=# onClick=\"window.open('$base_url/admin/admin_remote.php?game=$game','remote','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=200,height=60')\">Mute User</a><br><a class=menu href=$base_url/warn_user.php?game=$game>Warn User</a>"; } if ($rank >= 7) { $admin_line .= "<br><a href=$base_url/admin/admin.php?game=$game class=menu>Admin Panel</a>"; } if ($rank == null) { $updateLine2 = "<p><a href=register.php?game=$game><img src=http://images.toxicpets.co.cc/register.png width=180 height=165 border=0></a></p>"; //End Ranks } $menu = "$updateLine2<p><a href=/index.php?game=$game><img src=http://images.toxicpets.co.cc/map.png width=180 height=165 border=0></a></p><p><a href=/games.php?game=$game><img src=http://images.toxicpets.co.cc/game.png width=180 height=165 border=0></a></p><p><a href=/mystuff.php?game=$game><img src=http://images.toxicpets.co.cc/control.png width=180 height=165 border=0></a></p><p align=center><A href=$base_url/login.php?game=$game class=menu>Login</a> | <A href=$base_url/logout.php?game=$game class=menu>Logout</a></font></p>$admin_line"; $userInfo = "<P><FONT SIZE=\"-1\"> Username: <A HREF=$base_url/update_profile.php?game=$game class=menu>$display_name</A><BR> Hunger: <A HREF=$base_url/myitems.php?game=$game class=menu><FONT SIZE=-1>$hungerLevel</A><BR> $pointVar: <a href=$base_url/bank.php?game=$game>$points</a><BR> <center><p><b><u>My Prefs</u></b></p></center> <center><a href=$base_url/myitems.php?game=$game>Items</a><center> <center><a href=$base_url/mypets.php?game=$game>Pets</a></center> <center><a href=$base_url/nursery.php?game=$game>Nursery</a></center>"; // SearchBox $searchBox = "<form action=$base_url/prompt.pro.php?game=$game method=post><p align=center><INPUT TYPE=text NAME=command VALUE='' SIZE=8><BR><INPUT TYPE=submit NAME=submit VALUE='Do it'></P></form>"; //End SearchBox // Bottom Copyright $copywrite ="<center><span id='servertime'></span> |<a href=http://www.toxicpets.co.cc class=bottom>Run By ToxicPets.co.cc</a><br>$total_time | <a href=$base_url/tos.php?game=$game class=bottom>Terms/Rules</a> | <a href=$base_url/privacy.php class=bottom>Privacy</a>| <a href=upgrade.php?game=$game class=bottom>Upgrade to Premium Now!</a>| <a href=http://neopets.com class=bottom>Copyright 2000-2010 Neopets, Inc. All Rights Reserved. Used With Permission</a></center>"; //End Bottom Copyright // // // (C) // // // // CSS // //CSS INCUDED IN PHP// $openHTML = " <HTML> <HEAD> <center><TITLE>$gameName2 - $page_title</TITLE></center> <style><!-- INPUT {color:#000000; font: 9pt verdana; font-weight: none; text-decoration: none; background: $maincellColor; border: 1 solid $topAndBottomBG; } TEXTAREA {color:#000000; font: 9pt verdana; font-weight: none; text-decoration: none; background: $maincellColor; border: 1 solid $topAndBottomBG; } BUTTON {color:#000000; font: 9pt verdana; font-weight: none; text-decoration: none; background: $maincellColor; border: 0 solid $topAndBottomBG; } SELECT {color:#000000; font: 9pt verdana; font-weight: none; text-decoration: none; background: $maincellColor; border: 1 solid $topAndBottomBG; } INPUT {color:#000000; font: 9pt verdana; font-weight: none; text-decoration: none; background: $maincellColor; border: 1 solid $topAndBottomBG; } OPTION {color:#000000; font: 9pt verdana; font-weight: none; text-decoration: none; background: $maincellColor; border: 1 solid $topAndBottomBG; } RESET {color:#000000; font: 9pt verdana; font-weight: none; text-decoration: none; background: $maincellColor; border: 1 solid $topAndBottomBG; } SUBMIT {color:#000000; font: 9pt verdana; font-weight: none; text-decoration: none; background: $maincellColor; border: 1 solid $topAndBottomBG; } A:link { text-decoration: underline; color: $mainlinkColor; } A:visited { text-decoration: underline; color: $mainlinkColor; } A:hover { text-decoration: underline; color: $mainlinkColor; } A:active { text-decoration: underline; color: $mainlinkColor; } A:link.menu { text-decoration: underline; color: $menulinkColor; } A:visited.menu { text-decoration: underline; color: $menulinkColor; } A:hover.menu { text-decoration: underline; color: $menulinkColor; } A:active.menu { text-decoration: underline; color: $menulinkColor; } A:link.bottom { text-decoration: underline; color: $bottomlinkColor; } A:visited.bottom { text-decoration: underline; color: $bottomlinkColor; } A:hover.bottom { text-decoration: underline; color: $bottomlinkColor; } A:active.bottom { text-decoration: underline; color: $bottomlinkColor; } p { font-family: verdana; font-size: 11pt; color: black; } p.error { font-family: verdana; font-weight: bold; color: red; } p.white { font-family: verdana; color: white; } a.white { color: white; text-decoration: underline; } hr { margin: -1; } img { border: 0 } --></style> </HEAD> <BODY BGCOLOR=\"$backgroundColor\"> <CENTER><TABLE BGCOLOR=\"$tableOutline\" CELLSPACING=1 CELLPADDING=0 WIDTH=\"95%\"> <TR BGCOLOR=\"#FFCC00\" width=100%> <TD VALIGN=bottom COLSPAN=2 HEIGHT=60 BGCOLOR=\"$topAndBottomBG\" width=12> <P ALIGN=right><FONT SIZE=\"+3\" COLOR=\"$topAndBottomText\"><B>$gameName</B></FONT></P> </TD> </TR> <TR> <TD VALIGN=top BGCOLOR=\"$menuColor\" width=120> $menu $userInfo $searchBox </TD> <TD VALIGN=top BGCOLOR='$maincellColor'><font color=$maincellText> "; $closeHTML = " </font></TD> </TR> <TR BGCOLOR='$topAndBottomBG'> <TD COLSPAN=2> <P align=right><FONT SIZE= '-1' color='$topAndBottomText'>$copywrite</FONT></P> </TD> </TR> </TABLE> </CENTER> </BODY> </HTML> "; ?> to css Link to comment https://forums.phpfreaks.com/topic/213223-css/ Share on other sites More sharing options...
ram4nd Posted September 12, 2010 Share Posted September 12, 2010 What do you mean, and place code in code holder Link to comment https://forums.phpfreaks.com/topic/213223-css/#findComment-1110278 Share on other sites More sharing options...
ram4nd Posted September 12, 2010 Share Posted September 12, 2010 You can't convert it to CSS. You can extract css code if that's what you want, but you can do that yourself as well. Anyway the php code is horrible. And the images are from neopets and I am pretty sure that those are under copyright. Link to comment https://forums.phpfreaks.com/topic/213223-css/#findComment-1110295 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.