NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Whats this code called

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 02-12-2005, 10:24 AM THREAD STARTER               #1 (permalink)
Account Suspended
 
dude's Avatar
Join Date: May 2003
Location: My House
Posts: 684
dude has a spectacular aura aboutdude has a spectacular aura about
 



Whats this code called


The code here... what is the code called when you click the corner where the two orange boxes are and the content of them hide? anyone know where i can find this code?
dude is offline  
Old 02-12-2005, 10:51 AM   #2 (permalink)
NamePros Member
Join Date: Nov 2003
Posts: 44
Pablo is an unknown quantity at this point
 



You can do that with div tags, EG drop menu.

Just find one and change it so on mouse click it hides instead of mouse out and click again it shows. need a little engineering to make it work. Its basicly javascript and div tags. which if you look at the scource code its all there.

Quote:
<script type='text/javascript'>
<!--
function updatecook(itemmenu){
????: NamePros.com http://www.namepros.com/programming/69692-whats-this-code-called.html
cookitem='span_'+itemmenu;
if(document.getElementById(cookitem).style.display !='none'){
var expireDate = new Date;
expireDate.setMinutes(expireDate.getMinutes()+10);
document.cookie = "treemenustatus=" + itemmenu + "; expires=" + expireDate.toGMTString();
}
else{
clearcook();
}
}


function clearcook(){
var expireDate = new Date;
expireDate.setMinutes(expireDate.getMinutes()+10);
document.cookie = "treemenustatus=" + "0" + "; expires=" + expireDate.toGMTString();
}

//-->

</script>
Then this will do the action. As i understand it.

onclick="clearcook();"
__________________
Click Link for Java IRC

PHP-Live IRC: pgardner.net:6667, Channel: #php.
Pablo is offline  
Old 02-12-2005, 11:05 AM THREAD STARTER               #3 (permalink)
Account Suspended
 
dude's Avatar
Join Date: May 2003
Location: My House
Posts: 684
dude has a spectacular aura aboutdude has a spectacular aura about
 



ok ill try to mess around with that stuff and hopefully get it
dude is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:43 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger