Hey where can i get drop down navi exact same as www.thinkhabbo.com i tried dynamic but their isn't 1 their
Printable View
Hey where can i get drop down navi exact same as www.thinkhabbo.com i tried dynamic but their isn't 1 their
it is the one of dymanic drive tho.
/***********************************************
* Switch Menu script- by Martial B of http://getElementById.com/
* Modified by Dynamic Drive for format & NS4/IE4 compatibility
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
out of the navi source code.
View -> Page source.
Any good?Code:<script language='JavaScript1.2'>
var dragswitch=0
var nsx
var nsy
var nstemp
function drag_dropns(name){
temp=eval(name)
temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
temp.onmousedown=gons
temp.onmousemove=dragns
temp.onmouseup=stopns
}
function gons(e){
temp.captureEvents(Event.MOUSEMOVE)
nsx=e.x
nsy=e.y
}
function dragns(e){
if (dragswitch==1){
temp.moveBy(e.x-nsx,e.y-nsy)
return false
}
}
function stopns(){
temp.releaseEvents(Event.MOUSEMOVE)
}
//drag drop function for IE 4+////
/////////////////////////////////
var dragapproved=false
function drag_dropie(){
if (dragapproved==true){
document.all.showimage.style.pixelLeft=tempx+event.clientX-iex
document.all.showimage.style.pixelTop=tempy+event.clientY-iey
return false
}
}
function initializedragie(){
iex=event.clientX
iey=event.clientY
tempx=showimage.style.pixelLeft
tempy=showimage.style.pixelTop
dragapproved=true
document.onmousemove=drag_dropie
}
if (document.all){
document.onmouseup=new Function('dragapproved=false')
}
function hidebox(){
if (document.all)
showimage.style.visibility='hidden'
else if (document.layers)
document.showimage.visibility='hide'
}
</script>
Theres The Rite Code:
HTML Code:/***********************************************
* Switch Menu script- by Martial B of http://getElementById.com/
* Modified by Dynamic Drive for format & NS4/IE4 compatibility
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var persistmenu="yes" //"yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)
var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only
if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}
function SwitchMenu(obj){
if(document.getElementById){
var el = document.getElementById(obj);
var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
if(el.style.display != "block"){ //DynamicDrive.com change
for (var i=0; i<ar.length; i++){
if (ar[i].className=="submenu") //DynamicDrive.com change
ar[i].style.display = "none";
}
el.style.display = "block";
}else{
el.style.display = "none";
}
}
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function onloadfunction(){
if (persistmenu=="yes"){
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=get_cookie(cookiename)
if (cookievalue!="")
document.getElementById(cookievalue).style.display="block"
}
}
function savemenustate(){
var inc=1, blockid=""
while (document.getElementById("sub"+inc)){
if (document.getElementById("sub"+inc).style.display=="block"){
blockid="sub"+inc
break
}
inc++
}
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=(persisttype=="sitewide")? blockid+";path=/" : blockid
document.cookie=cookiename+"="+cookievalue
}
if (window.addEventListener)
window.addEventListener("load", onloadfunction, false)
else if (window.attachEvent)
window.attachEvent("onload", onloadfunction)
else if (document.getElementById)
window.onload=onloadfunction
if (persistmenu=="yes" && document.getElementById)
window.onunload=savemenustate
</script><div id="masterdiv">
<font size="1" face="Verdana">
<div class="menutitle" onclick="SwitchMenu('sub1')">
<div align="left"><img border="0" src="images/home_nav.gif" width="200" height="21"></div>
</div>
<span class="submenu" id="sub1">
<a target="main" style="text-decoration: none" href="homepage.php">
<font color="#000000">- Home</font></a><br>
-
<a target="main" style="text-decoration: none" href="about.php">
<font color="#000000">About Us</font></a><br>
-
<a target="main" style="text-decoration: none" href="meetteam.php">
<font color="#000000">Meet The Team</font></a><br>
-
<a target="main" style="text-decoration: none" href="jobform.php">
<font color="#000000">Job Openings</font></a><br>
-
<a target="main" href="contact.php" style="text-decoration: none">
<font color="#000000">Contact Us</font></a></span>
<div class="menutitle" onclick="SwitchMenu('sub2')">
<div align="left"><img border="0" src="images/news_nav.gif" width="200" height="21"></div>
</div>
<span class="submenu" id="sub2">
-
<a target="main" style="text-decoration: none" href="http://www.thinkhabbo.com/news/show_news.php?category=1">
<font color="#000000">Habbo Hotel UK</font></a><br>
-
<a target="main" style="text-decoration: none" href="http://www.thinkhabbo.com/news/show_news.php?category=2">
<font color="#000000">Habbo Hotel USA</font></a><br>
-
<a target="main" style="text-decoration: none" href="http://www.thinkhabbo.com/news/show_news.php?category=3">
<font color="#000000">Habbo Hotel CA</font></a><br>
-
<a target="main" style="text-decoration: none" href="http://www.thinkhabbo.com/news/show_news.php?category=5">
<font color="#000000">Real Life News</font></a></span><div class="menutitle" onclick="SwitchMenu('sub3')">
<center><img border="0" src="images/radio_nav.gif" width="200" height="21"></center></div><span class="submenu" id="sub3">
-
<a target="main" style="text-decoration: none" href="request.php">
<font color="#000000">Request Line</font></a><br />
-
<font color="#000000">
<a target="main" style="text-decoration: none" href="http://www.thinkhabbo.com/timetable.php">
<font color="#000000">Weekly Schedule</font></a></font><br>-
<a target="main" href="shows.php"><span style="text-decoration: none">
<font color="#000000">Regular Shows</font></span></a></span><div class="menutitle" onclick="SwitchMenu('sub4')">
<div align="left"><img border="0" src="images/community_nav.gif" width="200" height="21"></div>
</div>
<span class="submenu" id="sub4">
- <font color="#000000">
<a target="main" style="text-decoration: none" href="weeklyevent.php">
<font color="#000000">ThinkHabbo Weekly Event</font></a><br>
- <font color="#000000">
<a target="main" style="text-decoration: none" href="weeklycompetition.php">
<font color="#000000">Weekly Competition</font></a><br>
-
<a target="main" style="text-decoration: none" href="lotteryguide.php">
<font color="#000000">ThinkHabbo Lottery</font></a><br>
- <a target="main" href="helpdesk.php" style="text-decoration: none">
<font color="#000000">ThinkHabbo Help Desk</font></a><br>
- <a target="main" href="helpdeskjobs.php" style="text-decoration: none">
<font color="#000000">ThinkHabbo Help Desk Jobs</font></a><strike><br>
</strike>- <a target="main" href="thinkhabbocouncil.php">
<span style="text-decoration: none"><font color="#000000">ThinkHabbo Council</font></span></a><br>
-
<span style="text-decoration: none">
<a target="main" href="goodies.php" style="text-decoration: none"><font color="#000000">Goodies</font></a></span><br>
-
<a target="main" style="text-decoration: none" href="roomdropper.php">
<font color="#000000">ThinkHabbo Room Dropper</font></a><br>
-
<a target="main" style="text-decoration: none" href="donate.php">
<font color="#000000">Make A Donation</font></a><br>
-
<a target="main" style="text-decoration: none" href="alterations.php">
<font color="#000000">Alterations</font></a></font></span><font color="#000000">
<div class="menutitle" onclick="SwitchMenu('sub5')">
<center><img border="0" src="images/guides_nav.gif" width="200" height="21"></center></div><span class="submenu" id="sub5">- <a target="main" href="hotels.php" style="text-decoration: none"><font color="#000000">The World Of Habbo</font></a><br>
- <a target="main" style="text-decoration: none" href="badges.php"><font color="#000000">Habbo Hotel Badges</font></a><br>
-
<a target="main" href="habboclub.php" style="text-decoration: none"><font color="#000000">Habbo Club</font></a><br>
-
<a target="main" href="buycredits.php" style="text-decoration: none"><font color="#000000">The World Of Credits</font></a><br>
-
<a target="main" style="text-decoration: none" href="tipsandtricks.php"><font color="#000000">
Tips And Tricks</font></a><br>
-
<a target="main" href="stacking.php" style="text-decoration: none"><font color="#000000">Stacking</font></a><br>
-
<a target="main" href="flatstacking.php" style="text-decoration: none"><font color="#000000">Flat Stacking</font></a><br>
-
<a target="main" href="habbohelptool.php" style="text-decoration: none"><font color="#000000">Habbo Help Tool</font></a><br>
-
<a target="main" href="callforhelp.php" style="text-decoration: none"><font color="#000000">Calling For Help</font></a><br>
-
<a target="main" href="publicspaces.php" style="text-decoration: none"><font color="#000000">Public Spaces</font></a><br>
-
<a target="main" style="text-decoration: none" href="rollers.php">
<font color="#000000">The World Of Rollers</font></a><br>
-
<a target="main" href="navigating.php" style="text-decoration: none"><font color="#000000">Navigation Around The Hotel</font></a><br>
-
<a target="main" href="petsguide.php" style="text-decoration: none"><font color="#000000">Habbo Pets</font></a><br>
-
<a target="main" href="goodhabbo.php" style="text-decoration: none"><font color="#000000">How To Be A Good Habbo</font></a></span>
<div class="menutitle" onclick="SwitchMenu('sub6')">
<center><img border="0" src="images/help_nav.gif" width="200" height="21"></center></div><span class="submenu" id="sub6">-
<a target="main" style="text-decoration: none" href="internetsecurity.php">
<font color="#000000">Internet Security</font></a><br>
-
<a target="main" style="text-decoration: none" href="habbosafety.php">
<font color="#000000">Habbo Safety</font></a><br>
-
<a target="main" style="text-decoration: none" href="keyloggerguide.php">
<font color="#000000">Keyloggers</font></a><br>
-
<a target="main" style="text-decoration: none" href="onlinesafety.php">
<font color="#000000">Online Safety</font></a><br>
-
<a target="main" style="text-decoration: none" href="passwordsafety.php">
<font color="#000000">Password Safety</font></a></span>
<div class="menutitle" onclick="SwitchMenu('sub7')">
<center><img border="0" src="images/links_nav.gif" width="200" height="21"></center></div><span class="submenu" id="sub7">-
<a target="main" href="linkus.php" style="text-decoration: none">
<font color="#000000">Link Us</font></a><br>
- <a target="main" href="radiolink.php">
<span style="text-decoration: none"><font color="#000000">Link Our Radio</font></span></a><br>
-
<a style="text-decoration: none" target="main" href="fansitelinks.php">
<font color="#000000">Fansite Links</font></a><br>
- <a target="main" href="officialfansites.php">
<span style="text-decoration: none"><font color="#000000">Official Fansite Links</font></span></a></span>
<div class="menutitle" onclick="SwitchMenu('sub8')">
<center><font size="1"><img border="0" src="images/forum_nav.gif" width="200" height="21"></font></center></div><span class="submenu" id="sub8">-
<a style="text-decoration: none" target="_blank" href="http://www.thinkhabboforum.net">
<font color="#000000">Visit Here</font></a><br>
-
<a style="text-decoration: none" target="_blank" href="http://www.thinkhabboforum.net/register.php">
<font color="#000000">Register Here</font></a><br>
-
<a style="text-decoration: none" target="_blank" href="http://www.thinkhabboforum.net/payments.php">
<font color="#000000">Buy V.I.P</font></a><br>
-
<a style="text-decoration: none" target="_blank" href="http://www.thinkhabboforum.net/showthread.php?t=4">
<font color="#000000">View Forum Rules</font></a></span><div class="menutitle" onclick="SwitchMenu('sub9')">
<center><font size="1"><img border="0" src="images/articles_nav.gif" width="200" height="21"></font></center></div><span class="submenu" id="sub9"><a target="main" style="text-decoration: none" href="interviews.php">
<font color="#000000">- Interviews</font></a><br>
-
<a style="text-decoration: none" target="main" href="fansitereviews.php">
<font color="#000000">Fansite Reviews</font></a><strike><br>
</strike>
<a target="main" style="text-decoration: none" href="roomreviews.php">
<font color="#000000">- Room Reviews</font></a></span>
<div class="menutitle" onclick="SwitchMenu('sub10')">
<center><font size="1"><img border="0" src="images/newsletter_nav.gif" width="200" height="22"></font></center></div><span class="submenu" id="sub10">
<a target="main" style="text-decoration: none" href="newsletter/newsletterarticle5.php">
<font color="#000000">- Current Newsie</font></a><br>
</strike>
<a target="main" style="text-decoration: none" href="newsletter/newsletterarchive.php">
<font color="#000000">- View Archive</font></a><strike><br>
</strike>
<a target="main" style="text-decoration: none" href="newsletter/submitlink/customcontact.php">
<font color="#000000">- Submit An Article</font></a></span><div class="menutitle" onclick="SwitchMenu('sub11')">
<center><font size="1"><img border="0" src="images/thfactor_nav.GIF" width="200" height="22"></font></center></div><span class="submenu" id="sub11">
- <a target="main" style="text-decoration: none" href="thinkhabbofactor.php"><font color="#000000">The ThinkHabbo Factor</a><br>
</strike>
<a target="main" style="text-decoration: none">
-
<a target="main" style="text-decoration: none" href="thejudges.php"><font color="#000000">The Presenters</a></font><strike><br>
</strike>
- <a target="main" href="thecontestants.php"><font color="#000000">The Contestants</a></font><br>
</strike>
- <a target="main" href="prizesandcompetitions.php"><font color="#000000">Prizes & Competitions</a></font><br>
</strike>
<a target="main" style="text-decoration: none">
-
<a target="main" style="text-decoration: none" href="applyhere.php"><font color="#000000">Apply Here!</a></font></a></span></div>
</td>
</tr>
Yeah thats correct.Quote:
Originally Posted by Dots-Hosting
Or if you want to actually have code thats not already built in to someone elses nav just copy and paste the switch nav code strait of Dynamic Drive
http://www.dynamicdrive.com/dynamici...switchmenu.htm
He said he wanted it EXACTLY the same
EDIT: If you use mads code go to http://thinkhabbo.com and right click the images and click 'Save As' name them the same and upload them to the same folder 'Images'
thts wrong because your coping Thinkhabbos images there...
Hey
Drop downs can look very ugly if you dont change what they look like.
Then can but thats not what this thread is about ;).Quote:
Originally Posted by Adam050
To numark: Yes off course. :)