Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-22-2005, 02:43 AM   #1
celebx
Confirmed User
 
Join Date: Jul 2001
Location: The Netherlands
Posts: 197
Javascript Tools and Technology Thread

<script language="Javascript" type="text/javascript">
//By Snt ICQ 83226461 (@gmail.com)

// access an obect inside an document, compatible with ALL browsers
function ml_doc(id) {doc=(document.getElementById)?'getElementById("'+ id+'")'document.layers)?'layers["'+id+'"]'document.all)?'all["'+id+'"]':false;try {eval("document."+doc).constructor;} catch(e) {alert('function ml_doc() {\nreturn '+doc+'\n}\n\n'+e);}return eval("document."+doc);}

//usage:
ml_doc('object_name').style.background='#FFFF00';

// hide an object
function ml_love(l) {for (i=1; i<arguments.length; i++) {if(lhahahaha1) {ml_doc(arguments[i]).style.visibility='hidden';} else {ml_doc(arguments[i]).style.display='none';}}}


//usage:
ml_love(1,'object_name'); //visibility, object dimensional effect remains
ml_love(0,'object_name'); //display, object is hidden completely

// unhide an object
function ml_unlove() {for (i=0; i<arguments.length; i++) {ml_doc(arguments[i]).style.visibility='visible';ml_doc(arguments[i]).style.display='';}}

//usage:
ml_unlove('object_name');

// check visibility state of an object
function ml_lovestate(id) {if (ml_doc(id).style.visibilityhahahaha'hidden') {return 1;} else if (ml_doc(id).style.displayhahahaha'none') {return 2;} else {return 0;}}

//usage:
if (ml_lovestate('object_name')) {
alert('object_name is invisible');
}

//usage:
if (ml_lovestate('object_name')hahahaha2) {
alert('display=none');
}
</script>

hahahaha = '= ='
__________________
Message me for more info: ICQ 8322641 (@gmail.com).
celebx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-22-2005, 04:49 AM   #2
d00t
Confirmed User
 
Industry Role:
Join Date: Sep 2002
Location: In your mind
Posts: 3,766
fantastic... english ?
d00t is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-22-2005, 05:49 AM   #3
celebx
Confirmed User
 
Join Date: Jul 2001
Location: The Netherlands
Posts: 197
Some cross browser compatible possibilities with the scripts above:


<html style="width:100%;height:100%;overflow:none;">

<head><title></title></head>

<body scroll="no" style="overflow:none;" onload="ml_love('loading');">

<div id="loading" style="position:absolute;top:0px;left:0px;width:10 0%;height:100%;" title="This site is loading...">

THIS SITE IS LOADING!!!

</div>

<div id="body" style="position:absolute;top:0px;left:0px;width:10 0%;height:100%;overflow:auto;">

CONTENT OF YOUR PAGE/SITE HERE

</div>

</body>
</html>
__________________
Message me for more info: ICQ 8322641 (@gmail.com).
celebx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-28-2005, 02:02 PM   #4
celebx
Confirmed User
 
Join Date: Jul 2001
Location: The Netherlands
Posts: 197
http://www.celebrityprofiler.com/ml_doc.txt
__________________
Message me for more info: ICQ 8322641 (@gmail.com).
celebx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.