View Full Version : Cursors! HELP PLEASE


xzeekzx
09-01-2003, 02:51 PM
i'm trying to put a cool curser on my weppage, but it wont work.... i did exactly what lisa said to do, and it still wont work! i'm so confused....


thankx for your help :)

Sheila
09-01-2003, 02:53 PM
Can you please post your coding or post the url to the site?

xzeekzx
09-01-2003, 02:57 PM
ok, this is my website.... http://www.freewebs.com/allover/ links arent working, so just type that in, or coppy paste... and i went to this link, coppied the script, and did what it said to do

http://www.lissaexplains.com/cursor.shtml


ty for the help :)

kittycat
09-01-2003, 04:13 PM
That page doesn't seem to exist.

xzeekzx
09-01-2003, 05:06 PM
umm hmm, try this


http://www.freewebs.com/allover/index.htm

MaGiCSuN
09-01-2003, 05:23 PM
you have to upload each single image to your own space.

also you have stylesheet coding in your <body> part while it should be in the <head> part. like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
<head>
<title>Put Document Title Here</title>
<style type="text/css">
body
{
scrollbar-face-color : #9900ff;
scrollbar-highlight-color : #9900ff;
scrollbar-3dlight-color : #9900ff;
scrollbar-shadow-color : #9900ff;
scrollbar-darkshadow-color : #9900ff;
scrollbar-track-color : #9900ff;
scrollbar-arrow-color : #9900ff;
}
</style>
</head>


<body bgcolor="gray" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<script>

/*
Cross browser cursor trailer script
By Brian Caputo (bcaputo@icdc.com)
Written permission granted to lissaexplains.com
to distribute the script for personal use. (DO NOT REMOVE THIS)
*/

B=document.all;
C=document.layers;
T1=new Array("peng1.gif",38,35,"peng2.gif",30,31,"peng3.gif",28,26,"peng4.gif",22,21,"peng5.gif",16,16,"peng6.gif",10,10)
nos=parseInt(T1.length/3)
rate=50
ie5fix1=0;
ie5fix2=0;
for (i=0;i<nos;i++){
createContainer("CUR"+i,i*10,i*10,i*3+1,i*3+2,"","<img src='"+T1[i*3]+"' width="+T1[(i*3+1)]+" height="+T1[(i*3+2)]+" border=0>")}
function createContainer(N,Xp,Yp,W,H,At,HT,Op,St){
with (document){
write((!B) ? "<layer id='"+N+"' left="+Xp+" top="+Yp+" width="+W+" height="+H : "<div id='"+N+"'"+" style='position:absolute;left:"+Xp+"; top:"+Yp+"; width:"+W+"; height:"+H+"; ");
if(St){
if (C)
write(" style='");
write(St+";' ")
}
else write((B)?"'":"");
write((At)? At+">" : ">");
write((HT) ? HT : "");
if (!Op)
closeContainer(N)
}
}
function closeContainer(){
document.write((B)?"</div>":"</layer>")
}
function getXpos(N){
return (B) ? parseInt(B[N].style.left) : C[N].left
}
function getYpos(N){
return (B) ? parseInt(B[N].style.top) : C[N].top
}

function moveContainer(N,DX,DY){
c=(B) ? B[N].style :C[N];c.left=DX;c.top=DY
}
function cycle(){
//if (IE5)
if (document.all&&window.print){
ie5fix1=document.body.scrollLeft;
ie5fix2=document.body.scrollTop;
}
for (i=0;i<(nos-1);i++){
moveContainer("CUR"+i,getXpos("CUR"+(i+1)),getYpos("CUR"+(i+1)))
}
}
function newPos(e){
moveContainer("CUR"+(nos-1),(B)?event.clientX+ie5fix1:e.pageX+2,(B)?event.c lientY+ie5fix2:e.pageY+2
)
}
if(document.layers)
document.captureEvents(Event.MOUSEMOVE)
document.onmousemove=newPos
setInterval("cycle()",rate)
</script>

<TABLE ALIGN="left" BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="20%>
<TR ALIGN="left" VALIGN="middle" LENGTH="100%">

<TD bgcolor="blue"><font color="white"><center>



Text HEre Sam</center></font>
</TD></TR>
</TABLE>

</body>
</html>

i have added the red part, since you didn't closed the tags :)

Love,
Mirna

xzeekzx
09-04-2003, 03:02 AM
Wow, thank you so much, how did you know all of that scripting? thats awsome lol!

edit:
thank you for all the help! but the cursors arent working, and i tried to post a lissa banner on it, but it wouldnt work either, and niehter will the scroll bar. i dont mean to be a nusence, but thank you for all your hlep! its really great!