GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   need some html work done. (https://gfy.com/showthread.php?t=932527)

Fucksakes 10-09-2009 08:53 PM

need some html work done.
 
I am trying to make a "more info" link open up a table under a set of cells of a toplist that will show more info of a site. I seen pimproll do this in the members area but couldn't break the code up and make it work myself :(

potter 10-09-2009 10:10 PM

Would something as simple as this work?

Code:

<a href="#" onclick="document.getElementById(infodiv).style.display = 'block';return false;" title="">more info</a>

<div id="infodiv" style="display: none;">stuff</div>


Fucksakes 10-09-2009 10:14 PM

possibly.. will test it in a sec.. thanks

potter 10-09-2009 10:30 PM

oops, sorry - forgot quotes around the id. should be

Code:

<a href="#" onclick="document.getElementById('infodiv').style.display = 'block';return false;" title="">more info</a>

<div id="infodiv" style="display: none;">stuff</div>


Fucksakes 10-09-2009 11:17 PM

almost.. now here is where i get picky..

I need it the open link to turn into a close link.

also possibly something less dramatic when opening.. more like sliding open.. like a garage door coming down. but this will be a table opening the detail.. and click the link again.. and it closes.


All times are GMT -7. The time now is 01:10 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc