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
Server Development
Habbo Retros
Habbo Q&A
[QUICK HELP!] Div Boxes
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="JayC" data-source="post: 301425" data-attributes="member: 36373"><p>Ok so script doesn't work.. Here is my generic_top:</p><p></p><p>[CODE]<body id="%body_id%" class="<?php if (!LOGGED_IN) { echo 'Guest'; } ?> "></p><p>**Link to my new layout**</p><p><?php</p><p>$getSettings = dbquery("SELECT * FROM users WHERE id='".USER_ID."' LIMIT 1");</p><p>{</p><p> $userAccount = mysql_fetch_assoc($getSettings);</p><p> echo '</p><p> <div id="top"></p><p> **My Top Bar is here**</p><p> <div style="clear: both;"></div></p><p> </p><p> </div>';</p><p>}</p><p>require_once "*****.php";</p><p>?>[/CODE]</p><p></p><p>*****.PHP:</p><p></p><p>[CODE]</p><p><!doctype html></p><p><html lang="en"></p><p></p><p><head></p><p> <meta charset="utf-8"%www%/></p><p> ***My New Layout Link Again****</p><p> <!--[if lt IE 9]></p><p> <link rel="stylesheet" href="css/ie.css" type="text/css" media="screen" /></p><p> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script></p><p> <![endif]--></p><p> <script src="js/jquery-1.5.2.min.js" type="text/javascript"></script></p><p> **Javascript for my navigator**</p><p> <script src="js/jquery.tablesorter.min.js" type="text/javascript"></script></p><p> <script type="text/javascript" src="js/jquery.equalHeight.js"></script></p><p> <script type="text/javascript"></p><p> $(document).ready(function()</p><p> {</p><p> $(".tablesorter").tablesorter();</p><p> }</p><p> );</p><p> $(document).ready(function() {</p><p></p><p> //When page loads...</p><p> $(".tab_content").hide(); //Hide all content</p><p> $("ul.tabs li:first").addClass("active").show(); //Activate first tab</p><p> $(".tab_content:first").show(); //Show first tab content</p><p></p><p> //On Click Event</p><p> $("ul.tabs li").click(function() {</p><p></p><p> $("ul.tabs li").removeClass("active"); //Remove any "active" class</p><p> $(this).addClass("active"); //Add "active" class to selected tab</p><p> $(".tab_content").hide(); //Hide all tab content</p><p></p><p> var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content</p><p> $(activeTab).fadeIn(); //Fade in the active ID content</p><p> return false;</p><p> });</p><p></p><p>});</p><p> </p><p> <script type="text/javascript"></p><p></p><p> function Toggle(id)</p><p> {</p><p> var List = document.getElementById('list-' + id);</p><p> var Button = document.getElementById('plus-' + id);</p><p> </p><p> if (List.style.display == 'block' || List.style.display == '')</p><p> {</p><p> List.style.display = 'none';</p><p> Button.innerHTML = '+';</p><p> }</p><p> else</p><p> {</p><p> List.style.display = 'block';</p><p> Button.innerHTML = '-';</p><p> }</p><p> </p><p> setCookie('tab-' + id, List.style.display, 9999); </p><p> }</p><p></p><p> function t(id)</p><p> {</p><p> var el = document.getElementById(id);</p><p> </p><p> if (el.style.display == 'block' || el.style.display == '')</p><p> {</p><p> el.style.display = 'none';</p><p> }</p><p> else</p><p> {</p><p> el.style.display = 'block';</p><p> }</p><p> }</p><p></p><p> function setCookie(c_name,value,expiredays)</p><p> {</p><p> var exdate=new Date();</p><p> exdate.setDate(exdate.getDate()+expiredays);</p><p> document.cookie=c_name+ "=" +escape(value)+</p><p> ((expiredays==null) ? "" : ";expires="+exdate.toGMTString());</p><p> }</p><p></p><p> function checkCookies()</p><p> {</p><p> ca = document.cookie.split(';');</p><p></p><p> for (i = 0; i < ca.length; i++)</p><p> {</p><p> bits = ca[i].split('=');</p><p> </p><p> key = trim(bits[0]);</p><p> value = trim(bits[1]);</p><p> </p><p> if (key.substr(0, 3) == 'tab')</p><p> {</p><p> tabName = key.substr(4);</p><p> </p><p> if (value == 'none')</p><p> {</p><p> Toggle(tabName);</p><p> }</p><p> }</p><p> }</p><p> }</p><p></p><p> function trim(value)</p><p> {</p><p> value = value.replace(/^\s+/,'');</p><p> value = value.replace(/\s+$/,'');</p><p> return value;</p><p> }</p><p> </script></p><p></head></p><p></p><p>***Navigator****[/CODE]</p></blockquote><p></p>
[QUOTE="JayC, post: 301425, member: 36373"] Ok so script doesn't work.. Here is my generic_top: [CODE]<body id="%body_id%" class="<?php if (!LOGGED_IN) { echo 'Guest'; } ?> "> **Link to my new layout** <?php $getSettings = dbquery("SELECT * FROM users WHERE id='".USER_ID."' LIMIT 1"); { $userAccount = mysql_fetch_assoc($getSettings); echo ' <div id="top"> **My Top Bar is here** <div style="clear: both;"></div> </div>'; } require_once "*****.php"; ?>[/CODE] *****.PHP: [CODE] <!doctype html> <html lang="en"> <head> <meta charset="utf-8"%www%/> ***My New Layout Link Again**** <!--[if lt IE 9]> <link rel="stylesheet" href="css/ie.css" type="text/css" media="screen" /> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <script src="js/jquery-1.5.2.min.js" type="text/javascript"></script> **Javascript for my navigator** <script src="js/jquery.tablesorter.min.js" type="text/javascript"></script> <script type="text/javascript" src="js/jquery.equalHeight.js"></script> <script type="text/javascript"> $(document).ready(function() { $(".tablesorter").tablesorter(); } ); $(document).ready(function() { //When page loads... $(".tab_content").hide(); //Hide all content $("ul.tabs li:first").addClass("active").show(); //Activate first tab $(".tab_content:first").show(); //Show first tab content //On Click Event $("ul.tabs li").click(function() { $("ul.tabs li").removeClass("active"); //Remove any "active" class $(this).addClass("active"); //Add "active" class to selected tab $(".tab_content").hide(); //Hide all tab content var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content $(activeTab).fadeIn(); //Fade in the active ID content return false; }); }); <script type="text/javascript"> function Toggle(id) { var List = document.getElementById('list-' + id); var Button = document.getElementById('plus-' + id); if (List.style.display == 'block' || List.style.display == '') { List.style.display = 'none'; Button.innerHTML = '+'; } else { List.style.display = 'block'; Button.innerHTML = '-'; } setCookie('tab-' + id, List.style.display, 9999); } function t(id) { var el = document.getElementById(id); if (el.style.display == 'block' || el.style.display == '') { el.style.display = 'none'; } else { el.style.display = 'block'; } } function setCookie(c_name,value,expiredays) { var exdate=new Date(); exdate.setDate(exdate.getDate()+expiredays); document.cookie=c_name+ "=" +escape(value)+ ((expiredays==null) ? "" : ";expires="+exdate.toGMTString()); } function checkCookies() { ca = document.cookie.split(';'); for (i = 0; i < ca.length; i++) { bits = ca[i].split('='); key = trim(bits[0]); value = trim(bits[1]); if (key.substr(0, 3) == 'tab') { tabName = key.substr(4); if (value == 'none') { Toggle(tabName); } } } } function trim(value) { value = value.replace(/^\s+/,''); value = value.replace(/\s+$/,''); return value; } </script> </head> ***Navigator****[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
[QUICK HELP!] Div Boxes
Top