Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Help with jquery
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Proximity" data-source="post: 362833" data-attributes="member: 43026"><p>I need help with this I have tired for ever and I cannot get it to work!!</p><p>[code]</p><p><!DOCTYPE html></p><p><html></p><p><head></p><p> <title></title></p><p></head></p><p><body></p><p> <div class="container"></p><p> <div class="rightr-side"></p><p> <div class="c-title red"></p><p> Navigator</p><p> </div></p><p> <div class="c-main"></p><p> <b>Staff Ranks</b><br></p><p> - <a href="#founders" id="loginform">Founders</a><br></p><p> - <a href="#Manager" id="manager">Manager</a><br></p><p> - <a href="#Administrators" id="admin">Administrators</a><br></p><p> - <a href="#Moderators" id="mod">Moderators</a><br></p><p> - <a href="#Tmods" id="tmod">Trial Moderators</a><br></p><p> - <a href="#Events" id="event">Events Staff</a></p><p> </div></p><p> </div></p><p> </div></p><p> <div class="about"></p><p> <div class="container"></p><p> <div class="left-side"></p><p> <div class="c-box"></p><p> <div class="c-title red"></p><p> Staff Members</p><p> </div></p><p> <div class="c-main"></p><p> To view the @sitename Staff, please select a rank from</p><p> the list on the container on the right</p><p> </div></p><p> </div></p><p> </div></p><p> </div></p><p> </div></p><p> <script src=</p><p> "https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></p><p><?php</p><p> $q = LightShot::$MySQL->query("SELECT * FROM users WHERE rank = ? ORDER BY id ASC LIMIT 5", Array(13));</p><p> while($d = $q->fetch()){</p><p> if($d['online'] == 1){ $online = 'Online'; }else{ $online = 'Offline'; } </p><p> if($d['online'] == 1){ $online2 = 'darkgreen'; }else{ $online2 = 'darkred'; } </p><p> </p><p> </p><p> echo '</p><p> <div class="login"></p><p></p><p> <div class="container"></p><p> <div class="left-side"></p><p> <div class="c-box"></p><p> <div class="c-title red">'.$d['username'].'</div></p><p> <div class="c-main"></p><p> <div style=\'width: 64px; height: 81px; margin-top:-22px; margin-left:-10px; float: left; background: url(http://localhost/images/'.$d['look'].');\'></p><p> </div></p><p> <a href=\'/home/'.$d['username'].'\'><strong>'.$d['username'].'</strong></a><font color=\'grey\'> - '.$d['role'].'</font> </p><p> <div style=\'float: right; display: inline; margin-right: 10px;text-align: center;\'></p><p> <div style=\'width: 48px; display: inline;height: 48px;margin-top: -9px;float: right; background: url(//xotel.co/swf/c_images/album1584/ADM.gif); background-position:center; background-repeat:no-repeat;\'></p><p> </div><br /></p><p> <font color=\''.$online2.'\'><b>'.$online.'</b></font> </p><p> </div><br /></p><p> <strong>Motto:</strong> '.$d['motto'].'<br></p><p> <strong>Last Online:</strong> '.date('d, M, Y', $d['last_online']).' <br /><strong>Bans: </strong> | <strong>CFH\'s Responded: </strong> <br> </p><p> </div></p><p> </div></p><p> </div></div></div></p><p> ';</p><p> }</p><p> ?> </p><p> <?php</p><p> $q = LightShot::$MySQL->query("SELECT * FROM users WHERE rank = ? ORDER BY id ASC LIMIT 5", Array(11));</p><p> while($d = $q->fetch()){</p><p> if($d['online'] == 1){ $online = 'Online'; }else{ $online = 'Offline'; } </p><p> if($d['online'] == 1){ $online2 = 'darkgreen'; }else{ $online2 = 'darkred'; } </p><p> </p><p> </p><p> echo '</p><p> <div class="manager"></p><p></p><p> <div class="container"></p><p> <div class="left-side"></p><p> <div class="c-box"></p><p> <div class="c-title red">'.$d['username'].'</div></p><p> <div class="c-main"></p><p> <div style=\'width: 64px; height: 81px; margin-top:-22px; margin-left:-10px; float: left; background: url(http://localhost/images/'.$d['look'].');\'></p><p> </div></p><p> <a href=\'/home/'.$d['username'].'\'><strong>'.$d['username'].'</strong></a><font color=\'grey\'> - '.$d['role'].'</font> </p><p> <div style=\'float: right; display: inline; margin-right: 10px;text-align: center;\'></p><p> <div style=\'width: 48px; display: inline;height: 48px;margin-top: -9px;float: right; background: url(//xotel.co/swf/c_images/album1584/ADM.gif); background-position:center; background-repeat:no-repeat;\'></p><p> </div><br /></p><p> <font color=\''.$online2.'\'><b>'.$online.'</b></font> </p><p> </div><br /></p><p> <strong>Motto:</strong> '.$d['motto'].'<br></p><p> <strong>Last Online:</strong> '.date('d, M, Y', $d['last_online']).' <br /><strong>Bans: </strong> | <strong>CFH\'s Responded: </strong> <br> </p><p> </div></p><p> </div></p><p> </div></div></div></p><p> ';</p><p> }</p><p> ?> </p><p> <?php</p><p> $q = LightShot::$MySQL->query("SELECT * FROM users WHERE rank = ? ORDER BY id ASC LIMIT 5", Array(10));</p><p> while($d = $q->fetch()){</p><p> if($d['online'] == 1){ $online = 'Online'; }else{ $online = 'Offline'; } </p><p> if($d['online'] == 1){ $online2 = 'darkgreen'; }else{ $online2 = 'darkred'; } </p><p> </p><p> </p><p> echo '</p><p> <div class="manager"></p><p></p><p> <div class="container"></p><p> <div class="left-side"></p><p> <div class="c-box"></p><p> <div class="c-title red">'.$d['username'].'</div></p><p> <div class="c-main"></p><p> <div style=\'width: 64px; height: 81px; margin-top:-22px; margin-left:-10px; float: left; background: url(http://localhost/images/'.$d['look'].');\'></p><p> </div></p><p> <a href=\'/home/'.$d['username'].'\'><strong>'.$d['username'].'</strong></a><font color=\'grey\'> - '.$d['role'].'</font> </p><p> <div style=\'float: right; display: inline; margin-right: 10px;text-align: center;\'></p><p> <div style=\'width: 48px; display: inline;height: 48px;margin-top: -9px;float: right; background: url(//xotel.co/swf/c_images/album1584/ADM.gif); background-position:center; background-repeat:no-repeat;\'></p><p> </div><br /></p><p> <font color=\''.$online2.'\'><b>'.$online.'</b></font> </p><p> </div><br /></p><p> <strong>Motto:</strong> '.$d['motto'].'<br></p><p> <strong>Last Online:</strong> '.date('d, M, Y', $d['last_online']).' <br /><strong>Bans: </strong> | <strong>CFH\'s Responded: </strong> <br> </p><p> </div></p><p> </div></p><p> </div></div></div></p><p> ';</p><p> }</p><p> ?> </p><p> <?php</p><p> $q = LightShot::$MySQL->query("SELECT * FROM users WHERE rank = ? ORDER BY id ASC LIMIT 5", Array(9));</p><p> while($d = $q->fetch()){</p><p> if($d['online'] == 1){ $online = 'Online'; }else{ $online = 'Offline'; } </p><p> if($d['online'] == 1){ $online2 = 'darkgreen'; }else{ $online2 = 'darkred'; } </p><p> </p><p> </p><p> echo '</p><p> <div class="admin"></p><p></p><p> <div class="container"></p><p> <div class="left-side"></p><p> <div class="c-box"></p><p> <div class="c-title red">'.$d['username'].'</div></p><p> <div class="c-main"></p><p> <div style=\'width: 64px; height: 81px; margin-top:-22px; margin-left:-10px; float: left; background: url(http://localhost/images/'.$d['look'].');\'></p><p> </div></p><p> <a href=\'/home/'.$d['username'].'\'><strong>'.$d['username'].'</strong></a><font color=\'grey\'> - '.$d['role'].'</font> </p><p> <div style=\'float: right; display: inline; margin-right: 10px;text-align: center;\'></p><p> <div style=\'width: 48px; display: inline;height: 48px;margin-top: -9px;float: right; background: url(//xotel.co/swf/c_images/album1584/ADM.gif); background-position:center; background-repeat:no-repeat;\'></p><p> </div><br /></p><p> <font color=\''.$online2.'\'><b>'.$online.'</b></font> </p><p> </div><br /></p><p> <strong>Motto:</strong> '.$d['motto'].'<br></p><p> <strong>Last Online:</strong> '.date('d, M, Y', $d['last_online']).' <br /><strong>Bans: </strong> | <strong>CFH\'s Responded: </strong> <br> </p><p> </div></p><p> </div></p><p> </div></div></div></p><p> ';</p><p> }</p><p> ?> </p><p> <script src=</p><p> "https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type=</p><p> "text/javascript"></p><p> </script> </p><p> <script type="text/javascript"></p><p></p><p> $('#admin').click(function(){</p><p> $('.admin').fadeToggle('slow');</p><p> $(this).toggleClass('green');</p><p> });</p><p></p><p></p><p></p><p> $(document).mouseup(function (e)</p><p> {</p><p> var container = $(".admin");</p><p></p><p> if (!container.is(e.target) // if the target of the click isn't the container...</p><p> && container.has(e.target).length === 0) // ... nor a descendant of the container</p><p> {</p><p> container.hide();</p><p> $('#admin').removeClass('green');</p><p> }</p><p> });</p><p> </script> </p><p> <script src=</p><p> "https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type=</p><p> "text/javascript"></p><p> </script></p><p></body></p><p></html>[/code]</p></blockquote><p></p>
[QUOTE="Proximity, post: 362833, member: 43026"] I need help with this I have tired for ever and I cannot get it to work!! [code] <!DOCTYPE html> <html> <head> <title></title> </head> <body> <div class="container"> <div class="rightr-side"> <div class="c-title red"> Navigator </div> <div class="c-main"> <b>Staff Ranks</b><br> - <a href="#founders" id="loginform">Founders</a><br> - <a href="#Manager" id="manager">Manager</a><br> - <a href="#Administrators" id="admin">Administrators</a><br> - <a href="#Moderators" id="mod">Moderators</a><br> - <a href="#Tmods" id="tmod">Trial Moderators</a><br> - <a href="#Events" id="event">Events Staff</a> </div> </div> </div> <div class="about"> <div class="container"> <div class="left-side"> <div class="c-box"> <div class="c-title red"> Staff Members </div> <div class="c-main"> To view the @sitename Staff, please select a rank from the list on the container on the right </div> </div> </div> </div> </div> <script src= "https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"> <?php $q = LightShot::$MySQL->query("SELECT * FROM users WHERE rank = ? ORDER BY id ASC LIMIT 5", Array(13)); while($d = $q->fetch()){ if($d['online'] == 1){ $online = 'Online'; }else{ $online = 'Offline'; } if($d['online'] == 1){ $online2 = 'darkgreen'; }else{ $online2 = 'darkred'; } echo ' <div class="login"> <div class="container"> <div class="left-side"> <div class="c-box"> <div class="c-title red">'.$d['username'].'</div> <div class="c-main"> <div style=\'width: 64px; height: 81px; margin-top:-22px; margin-left:-10px; float: left; background: url(http://localhost/images/'.$d['look'].');\'> </div> <a href=\'/home/'.$d['username'].'\'><strong>'.$d['username'].'</strong></a><font color=\'grey\'> - '.$d['role'].'</font> <div style=\'float: right; display: inline; margin-right: 10px;text-align: center;\'> <div style=\'width: 48px; display: inline;height: 48px;margin-top: -9px;float: right; background: url(//xotel.co/swf/c_images/album1584/ADM.gif); background-position:center; background-repeat:no-repeat;\'> </div><br /> <font color=\''.$online2.'\'><b>'.$online.'</b></font> </div><br /> <strong>Motto:</strong> '.$d['motto'].'<br> <strong>Last Online:</strong> '.date('d, M, Y', $d['last_online']).' <br /><strong>Bans: </strong> | <strong>CFH\'s Responded: </strong> <br> </div> </div> </div></div></div> '; } ?> <?php $q = LightShot::$MySQL->query("SELECT * FROM users WHERE rank = ? ORDER BY id ASC LIMIT 5", Array(11)); while($d = $q->fetch()){ if($d['online'] == 1){ $online = 'Online'; }else{ $online = 'Offline'; } if($d['online'] == 1){ $online2 = 'darkgreen'; }else{ $online2 = 'darkred'; } echo ' <div class="manager"> <div class="container"> <div class="left-side"> <div class="c-box"> <div class="c-title red">'.$d['username'].'</div> <div class="c-main"> <div style=\'width: 64px; height: 81px; margin-top:-22px; margin-left:-10px; float: left; background: url(http://localhost/images/'.$d['look'].');\'> </div> <a href=\'/home/'.$d['username'].'\'><strong>'.$d['username'].'</strong></a><font color=\'grey\'> - '.$d['role'].'</font> <div style=\'float: right; display: inline; margin-right: 10px;text-align: center;\'> <div style=\'width: 48px; display: inline;height: 48px;margin-top: -9px;float: right; background: url(//xotel.co/swf/c_images/album1584/ADM.gif); background-position:center; background-repeat:no-repeat;\'> </div><br /> <font color=\''.$online2.'\'><b>'.$online.'</b></font> </div><br /> <strong>Motto:</strong> '.$d['motto'].'<br> <strong>Last Online:</strong> '.date('d, M, Y', $d['last_online']).' <br /><strong>Bans: </strong> | <strong>CFH\'s Responded: </strong> <br> </div> </div> </div></div></div> '; } ?> <?php $q = LightShot::$MySQL->query("SELECT * FROM users WHERE rank = ? ORDER BY id ASC LIMIT 5", Array(10)); while($d = $q->fetch()){ if($d['online'] == 1){ $online = 'Online'; }else{ $online = 'Offline'; } if($d['online'] == 1){ $online2 = 'darkgreen'; }else{ $online2 = 'darkred'; } echo ' <div class="manager"> <div class="container"> <div class="left-side"> <div class="c-box"> <div class="c-title red">'.$d['username'].'</div> <div class="c-main"> <div style=\'width: 64px; height: 81px; margin-top:-22px; margin-left:-10px; float: left; background: url(http://localhost/images/'.$d['look'].');\'> </div> <a href=\'/home/'.$d['username'].'\'><strong>'.$d['username'].'</strong></a><font color=\'grey\'> - '.$d['role'].'</font> <div style=\'float: right; display: inline; margin-right: 10px;text-align: center;\'> <div style=\'width: 48px; display: inline;height: 48px;margin-top: -9px;float: right; background: url(//xotel.co/swf/c_images/album1584/ADM.gif); background-position:center; background-repeat:no-repeat;\'> </div><br /> <font color=\''.$online2.'\'><b>'.$online.'</b></font> </div><br /> <strong>Motto:</strong> '.$d['motto'].'<br> <strong>Last Online:</strong> '.date('d, M, Y', $d['last_online']).' <br /><strong>Bans: </strong> | <strong>CFH\'s Responded: </strong> <br> </div> </div> </div></div></div> '; } ?> <?php $q = LightShot::$MySQL->query("SELECT * FROM users WHERE rank = ? ORDER BY id ASC LIMIT 5", Array(9)); while($d = $q->fetch()){ if($d['online'] == 1){ $online = 'Online'; }else{ $online = 'Offline'; } if($d['online'] == 1){ $online2 = 'darkgreen'; }else{ $online2 = 'darkred'; } echo ' <div class="admin"> <div class="container"> <div class="left-side"> <div class="c-box"> <div class="c-title red">'.$d['username'].'</div> <div class="c-main"> <div style=\'width: 64px; height: 81px; margin-top:-22px; margin-left:-10px; float: left; background: url(http://localhost/images/'.$d['look'].');\'> </div> <a href=\'/home/'.$d['username'].'\'><strong>'.$d['username'].'</strong></a><font color=\'grey\'> - '.$d['role'].'</font> <div style=\'float: right; display: inline; margin-right: 10px;text-align: center;\'> <div style=\'width: 48px; display: inline;height: 48px;margin-top: -9px;float: right; background: url(//xotel.co/swf/c_images/album1584/ADM.gif); background-position:center; background-repeat:no-repeat;\'> </div><br /> <font color=\''.$online2.'\'><b>'.$online.'</b></font> </div><br /> <strong>Motto:</strong> '.$d['motto'].'<br> <strong>Last Online:</strong> '.date('d, M, Y', $d['last_online']).' <br /><strong>Bans: </strong> | <strong>CFH\'s Responded: </strong> <br> </div> </div> </div></div></div> '; } ?> <script src= "https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type= "text/javascript"> </script> <script type="text/javascript"> $('#admin').click(function(){ $('.admin').fadeToggle('slow'); $(this).toggleClass('green'); }); $(document).mouseup(function (e) { var container = $(".admin"); if (!container.is(e.target) // if the target of the click isn't the container... && container.has(e.target).length === 0) // ... nor a descendant of the container { container.hide(); $('#admin').removeClass('green'); } }); </script> <script src= "https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type= "text/javascript"> </script> </body> </html>[/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Help with jquery
Top