December 2009
15 posts
3 tags
2 tags
2 tags
2 tags
bullshit generator →
5 tags
3 tags
{basic} innerHTML
<script>
function innerMe(pass){
if (pass != null){
document.getElementById(‘myObj’).innerHTML = pass;
}
else {
document.getElementById(‘myObj’).innerHTML = “shared inner HTML”;
}
}
</script>
<b id=’myObj’>def cont</b>
<input type=’button’ onclick=’innerMe(null)’...
3 tags
simple js {jpg.rollover}
…
<script>
function roll(nomeImg, stato){
document.images[nomeImg].src = “gfx/”+nomeImg+”_”+stato+”.jpg”;
}
</script>
…
<body>
…
<a href=”” onMouseOver=”roll(‘m01’, ‘on’);” onMouseOut=”roll(‘m01’, ‘off’);”><img...
4 tags
javascript rollover {show/hide} div {display}
…
<head>
<script>
function showDiv(pass){
var elm = document.getElementById(pass).style;
if (elm.display == “block”){
elm.display = “none”;
}
else {
elm.display = “block”;
}
}
</script>
</head>
…
<a href=”javascript:void(null);” onClick=”showDiv(‘moreLetters’);”...
some Japanese ;)
arigatou gozaimasu
( thank you, formal )
doitashimashite
( you are welcome )
ohayo
( goodmorning )
ohayo gozaimatsu
( goodmorning formal )
oyasumi nasai
( good night )
sumimasen
( I’m sorry )
Iie
( no worries, no problems )
ittekimasu
( i’m leaving )
itterasshai
( see u later )
tadaima
( i’m home )
okaeri
( welcome back )
okaeri nasai
( welcome back, formal...
css tricks
If you want to have a “0px div”, you need these guys :)
height: 0px; font-size: 0px; padding: 0px; margin: 0px; font-size: 0px; line-height: 0px;
1 tag
iPhone and iPod Touch wallpapers from a selection... →
David Lanham →
Your head’s like mine, like all our heads; big enough to contain every god and...
– Grant Morrison
1 tag