![]() Topic awaiting preservation: August 2005 - 20-line Javascript Contest - Navigation widgets (Page 1 of 1) |
|
|---|---|
|
Nervous Wreck (II) Inmate From: |
posted 08-08-2005 16:56
I must admit I don't remember the "classic" disclaimer, but who cares? |
|
Paranoid (IV) Inmate From: age |
posted 08-08-2005 17:03
Hmm... and let the sexism begin or what? |
|
Nervous Wreck (II) Inmate From: |
posted 08-08-2005 17:22
No, you may rip your clothes off as well. |
|
Paranoid (IV) Inmate From: age |
posted 08-08-2005 17:35
lol |
|
Nervous Wreck (II) Inmate From: |
posted 08-15-2005 20:59
Ok, crap fading drop down menus: code: //template to build a menu out of
var Template1="<div class=\"MainMenu\" id=\"Menu[Menus]\" onmouseover=\"Show([Menus],100,0)\" onmouseout=\"Show([Menus],0,100)\" style=\"top:[y];left:[x];\">[Main]<br><div class=\"SubMenu\" id=\"Sub[Menus]\" style=\"filter:alpha(opacity=0);-moz-opacity:0;\">[SubMenus]</div></div>";
//counter, how many menus have been created
var Menus=0;
//menu state
var MenuGo=new Array();
//sets if a menu should be shown or hidden
var Show=new Function("i,s,t","MenuGo[i]=new Array(s,(MenuGo[i]!=null)?MenuGo[i][1]:t);");
//Main : main link or text
//Sub : array of sublinks or text
//x : x position on screen
//y : y position on screen
//template: template to use for building the menu
function CrapMenu(Main,Sub,x,y,template)
{
//turn array of links into html list of links
var SubMenus=" "+Sub.toString().replace(/\,/g," <br> ");
//pad the menu heading
var Main=" "+Main+" "
//replace keyword in template [word] with javascript variable of same name
while((tmp=template.match(/\[\w*\]/)) !=null)
template=template.replace(tmp, eval(tmp.toString().replace("[","").replace("]","")));
//add the menu to the document
document.body.innerHTML+=template;
//increment counter
Menus++;
}
function ShowHide()
{
for(i=0;i<Menus;i++){
//if the menu hasn't been used yet or it is fully shown/hidden skip it
if(MenuGo[i]!=null && (MenuGo[i][0]!=MenuGo[i][1]) ){
//increment / decrement its counter
MenuGo[i][1]=(MenuGo[i][0])?MenuGo[i][1]+10:MenuGo[i][1]-10;
//apply changes
if(document.all)document.getElementById("Sub"+i).style.filter="alpha(opacity="+MenuGo[i][1]+")";
else document.getElementById("Sub"+i).style.MozOpacity=(MenuGo[i][1]/100)-0.1;
}
}
}
setInterval('ShowHide()',45); |
|
Bipolar (III) Inmate From: London |
posted 09-06-2005 17:57
Time for a September challenge? |
|
Paranoid (IV) Inmate From: France |
posted 09-07-2005 09:52
|
|
Bipolar (III) Inmate From: |
posted 09-08-2005 11:57
Sounds like a game dying away... so let's try a little "change": why not making it a random event, |
|
Bipolar (III) Inmate From: London |
posted 09-08-2005 15:58
Jeff and I already collate ours: |
|
Bipolar (III) Inmate From: |
posted 09-08-2005 16:05
Coolness, BillRayPreachersSon, thanks a lot, will start the collection this weekend (hopefully) (if somebody has spare time, send some this way, |
|
Paranoid (IV) Inmate From: France |
posted 09-08-2005 17:24
My 20 lines entries ( including the 'continued' ones ) are on the DHTML Contests page of my site. |
|
Nervous Wreck (II) Inmate From: UK |
posted 09-08-2005 17:32
My entries, in chronological order: |
|
Bipolar (III) Inmate From: |
posted 09-08-2005 17:42
Poi > I could give a hand for design or even the code of the 20 lines repository. |
|
Bipolar (III) Inmate From: Cranleigh, Surrey, England |
posted 09-08-2005 18:05
Sorry, I've kinda been away for a while. A lot has changed for me, not least of which is that I've moved away from computers as a whole :/ |
|
Paranoid (IV) Inmate From: France |
posted 09-08-2005 18:36
quote: |
|
Bipolar (III) Inmate From: |
posted 09-19-2005 14:16
Just a quick note to let you know I am collecting... thanks everybody for your input. Anybody interested in the lobby thingie? Oh, and it's going slow, |
|
Paranoid (IV) Inmate From: USA |
posted 09-19-2005 15:49
Whoa, missed this. |