mburt
08-20-2006, 09:19 PM
There's no real problem, but I'm wondering if this script would be worthy to be put in the "Submit DHTML/CSS Script" section.
It splits an image, and tilts it.
Check this out:
<html>
<head>
<style type="text/css">
body {
}
</style>
<script>
var source="image.png"
var imagewidth=30
var i=0
onload=function() {
for (i=0;i<=imagewidth;i++) {
document.body.innerHTML+="<div style='position:absolute;top:"+i+"px;left:"+i+2+";width:"+i+"px;overflow:hidden'><img style='margin-left:-"+i+"' src='"+source+"'></div>"
}
}
</script>
</head>
<body>
</body>
</html>
It splits an image, and tilts it.
Check this out:
<html>
<head>
<style type="text/css">
body {
}
</style>
<script>
var source="image.png"
var imagewidth=30
var i=0
onload=function() {
for (i=0;i<=imagewidth;i++) {
document.body.innerHTML+="<div style='position:absolute;top:"+i+"px;left:"+i+2+";width:"+i+"px;overflow:hidden'><img style='margin-left:-"+i+"' src='"+source+"'></div>"
}
}
</script>
</head>
<body>
</body>
</html>