Hello,
I have permission to use this code, i actually forgot i had it lol i was following a mouse controlled clock, pretty neat, yea i got it to work !
I would dearly love this script, i have had permission from the creator to use it, some time ago.
Its dhtml, something i never tried before, its a code for images but i can't get this to work, all i can get is red *X*in the boxes, i know from experience your images must be in the same folder as the page i.e index.htm, which they are!
should the code in the notepad be in index.htm as well cus its not, its in notepad lolol yea i don't normally do web pages...but i want to try...i was told the images and music are not allowed to be used, so no images in the code i have provided, and the music does'nt work either..mine!
The code:
<meta http-equiv="imagetoolbar" content="no">
<HTML>
<!-- ZoneLabs Privacy Insertion -->
<script language='javascript'
src='http://127.0.0.1:1029/js.cgi?pcaw&r=19711'></script>
<BODY bgcolor=#000000 scroll=no onload=zyva()>
<STYLE>
BODY {
cursor:url("../CRCROSS.cur");
}
img {position:absolute;left:-10000;border:#000000 solid 10px}
</STYLE>
<DIV id=load
style="font-family:courier;font-size:11pt;color:#FFFFFF">Loadin
g... Please wait...</DIV>
<div id=IMG>
<img src="../images/.jpg">
<img src="../images/.jpg">
<img src="../images/.jpg">
<img src="../images/.jpg">
<img src="../images/.jpg">
<img src="../images/.jpg">
</div>
<BGSOUND src="../sound/braveheart.mid" loop=infinite>
<script language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
var SymRealWinOpen = window.open;
function SymWinOpen(url, name, attributes)
{
return (new Object());
}
window.open = SymWinOpen;
//-->
</script>
<script>
// ------------------------------------------------------------
// script: Gerard Ferrandez - November 19th, 1999 - merci MP!
// news://news.leibowitz.org/nzn.fr.html
// http://www.dhteumeuleu.com
//-------------------------------------------------------------
window.onerror = new Function("return true")
screen.bufferDepth = 16
object = new Array()
W0 = 0
H0 = 0
am = 40
DV = 0
nx = 0
ny = 0
iB = 0
function CObj(N,img){
this.N = N
this.A = Math.round(Math.random()*10)+1
this.B = Math.round(Math.random()*10)+3
this.k = 0.1 * N
this.L = 0
this.T = 0
this.W = W0
this.H = H0
this.xb = 0
this.img = img.style
img.style.filter = "alpha(opacity=80)"
this.mainloop = function () {
with (this) {
k += 0.001
L = ((nx-W) * .5) + (Math.cos(k * A) *
.5) * (nx - W)
T = ((ny-H) * .5) + (Math.cos(k * B) *
.5) * (ny - H)
with(img){
width = Math.floor(W)
height = Math.floor(H)
top = Math.floor(T)
left = Math.floor(L)
}
if(Math.random()>0.995 && DV == 0 && iB
!= this){
DV = 1
img.filter = ""
this.zoomIn()
img.zIndex = -1
if(iB !=0) iB.zoomOut()
iB = this
}
}
}
this.zoomIn = function() {
with (this) {
W += (nx - W) / am
H += (ny - H) / am
if(W >= nx - 1) DV = 0;
else setTimeout("object[" + N +
"].zoomIn()",16)
}
}
this.zoomOut = function() {
with (this) {
W -= W / (am * .5)
H -= H / (am * .5)
if(W >= 20) setTimeout("object[" + N +
"].zoomOut()",16);
else {
img.zIndex = 1
zoomStart()
img.filter="alpha(opacity=80)"
}
}
}
this.zoomStart = function() {
with (this) {
W++
H += H0 / W0
if(W<W0 || H<H0)setTimeout("object[" +
N + "].zoomStart()",16)
}
}
setInterval("object[" + N + "].mainloop()",16)
}
window.onresize = function resize() {
nx = document.body.clientWidth - 20
ny = document.body.clientHeight - 20
}
function zyva() {
resize()
W0 = nx / 5
H0 = ny / 5
nbI = IMG.children.length
for(i=0;i<nbI;i++) object[i] = new
CObj(i,IMG.children[i])
load.style.visibility="hidden"
}
</script>
</BODY>
</HTML>
<script language="JavaScript">
<!--
var SymRealOnLoad;
var SymRealOnUnload;
function SymOnUnload()
{
window.open = SymWinOpen;
if(SymRealOnUnload != null)
SymRealOnUnload();
}
function SymOnLoad()
{
if(SymRealOnLoad != null)
SymRealOnLoad();
window.open = SymRealWinOpen;
SymRealOnUnload = window.onunload;
window.onunload = SymOnUnload;
}
SymRealOnLoad = window.onload;
window.onload = SymOnLoad;
//-->
</script>
<!-- ZoneLabs Popup Blocking Insertion -->
<script language='javascript'>postamble();</script>
Thanks suzie...where has those visit ozzues come from lolol they should'nt be in that code.
http://jungaling.com/katecorner/