PDA

View Full Version : Website Help



BROCKSTER
04-20-2003, 05:10 PM
im doing my site AGAIN but im going for broke this time :lol: i wanna make it reeeeeealy good.

ive seen on sites when you move your cursour over the page text follows it like all springy is it possible to do this in front page 2000 by puttin the html code in to it manually please help it looks wicked.cud u pm me with the code please???

Lamsey
04-20-2003, 06:29 PM
I doubt that it's done using HTML, it's more of an enhanced text formatting standard.

It's probably done using some sort of embedded applet that starts up automatically when you view the page.

[B][O][T]
04-20-2003, 06:37 PM
move your cursour over the page text follows it like all springy is it possible to do this in front page 2000 by puttin the html code in to it manually

That's Javascript....You can go here (http://www.js-examples.com/example/?ex=334&mode=2) for one example. You can also check My link in My signature I got a lot of Javascript there (not to download).

BOT

BROCKSTER
04-20-2003, 06:40 PM
bot the example on that site is EXACTLY wot i was lookin for but how do i get it to work on my site?? thanks for helping

[B][O][T]
04-20-2003, 06:55 PM
Great then copy the code below and put it in Your <HEAD> </HEAD>


&#60;STYLE&#62;
.spanstyle {
&nbsp; &nbsp;position&#58;absolute;
&nbsp; &nbsp;visibility&#58;visible;
&nbsp; &nbsp;top&#58;-50px;
&nbsp; &nbsp;font-size&#58;12pt;
&nbsp; &nbsp;font-family&#58;Verdana;
&nbsp; &nbsp;font-weight&#58;bold;
&nbsp; &nbsp;color&#58;steelblue;
}
&#60;/STYLE&#62;

&#60;script&#62;
var message=&#34;BROCKSTER&#34;.split&#40;&#34;&#34;&#41;;
var x;
var y;
var step=15;
var xpos=new Array&#40;&#41;;
var ypos=new Array&#40;&#41;;

function mouseMoved&#40;e&#41;{
&nbsp; &nbsp;x = &#40;document.layers&#41; ? e.pageX &#58; document.body.scrollLeft+event.clientX;
&nbsp; &nbsp;y = &#40;document.layers&#41; ? e.pageY &#58; document.body.scrollTop+event.clientY;
}

function makesnake&#40;&#41; {
&nbsp;var thisspan;
&nbsp; &nbsp;for &#40;var i=message.length-1; i&#62;=0; i--&#41; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xpos&#91;i&#93;=xpos&#91;i-1&#93;+step;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ypos&#91;i&#93;=ypos&#91;i-1&#93;;
&nbsp; &nbsp;}
&nbsp; &nbsp; &nbsp; &nbsp;xpos&#91;0&#93;=x+step;
&nbsp; &nbsp; &nbsp; &nbsp;ypos&#91;0&#93;=y;
&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;for &#40;var i in message&#41; {
&nbsp; &nbsp;if &#40;document.all&#41; {
&nbsp; &nbsp; &nbsp; &nbsp;thisspan = eval&#40;&#34;span&#34;+&#40;i&#41;+&#34;.style&#34;&#41;;
&nbsp; &nbsp; &nbsp; &nbsp;thisspan.posLeft=xpos&#91;i&#93;;
&nbsp; &nbsp; &nbsp; &nbsp;thisspan.posTop=ypos&#91;i&#93;;
&nbsp; &nbsp;} else if &#40;document.layers&#41; {
&nbsp;thisspan = eval&#40;&#34;document.span&#34;+i&#41;;
&nbsp; &nbsp; &nbsp; &nbsp;thisspan.left=xpos&#91;i&#93;;
&nbsp; &nbsp; &nbsp; &nbsp;thisspan.top=ypos&#91;i&#93;;
&nbsp; &nbsp;}
&nbsp; &nbsp;}

}
var timer = null;
function startSnake&#40;&#41; {
&nbsp;for &#40;var i in message&#41; {
&nbsp; &nbsp; &nbsp;xpos&#91;i&#93;=-50;
&nbsp; &nbsp; &nbsp;ypos&#91;i&#93;=-50;
&nbsp;}
&nbsp;setTimeout&#40;&#39;timer=setInterval&#40;&#34;makesnake&#40;&#41;&#34;,30&#41;;&#39;,1000&#41;;
}
startSnake&#40;&#41;;
for &#40;var i in message&#41; {
&nbsp;document.write&#40;&#34;&#60;span id=&#39;span&#34;+i+&#34;&#39; class=&#39;spanstyle&#39;&#62;&#34;&#41;
&nbsp;document.write&#40;message&#91;i&#93;&#41;;
&nbsp;document.write&#40;&#34;&#60;/span&#62;&#34;&#41;;
}

if &#40;document.layers&#41; { document.captureEvents&#40;Event.MOUSEMOVE&#41;; }
document.onmousemove = mouseMoved;

&#60;/script&#62;

BROCKSTER
04-20-2003, 07:09 PM
wen i put it in my head head bit in the html on frontpage it all the code shows up on the actuall page but no text follower thingy :blink:

[B][O][T]
04-20-2003, 07:15 PM
Fancy copy Your document and paste it here so I can have a look at it?

BROCKSTER
04-20-2003, 07:20 PM
:( not really want to post it in here but wil it wrk if i make the head head thing agen or another shud i say???

[B][O][T]
04-20-2003, 07:29 PM
Not sure what You do wrong....I made a temp page for You here (http://k-lite.no-ip.com/brockster.html) same code as I posted in My earlier post.

Still dosnt work post here or PM Me.

BOT

Lamsey
04-20-2003, 07:33 PM
BOT do you mind if I use that code too? It&#39;s kinda cool.

[B][O][T]
04-20-2003, 07:36 PM
Feel free :)

BROCKSTER
04-20-2003, 07:40 PM
THANK YOU :D
I OWE U BIG TIME :D :lol: :lol: :lol: now how i change the text size :blink:

i viewed source from that example and copy and pasted it and that worked

Lamsey
04-20-2003, 07:44 PM
Originally posted by [B][O][T]@20 April 2003 - 19:36
Feel free :)
Cheers BOT


Edit: done&#33;

[B][O][T]
04-20-2003, 07:48 PM
Originally posted by BROCKSTER@20 April 2003 - 21:40
how i change the text size :blink:


&#60;STYLE&#62;
.spanstyle {
&nbsp; &nbsp;position&#58;absolute;
&nbsp; &nbsp;visibility&#58;visible;
&nbsp; &nbsp;top&#58;-50px;
&nbsp; &nbsp;font-size&#58;12pt;
&nbsp; &nbsp;font-family&#58;Verdana;
&nbsp; &nbsp;font-weight&#58;bold;
&nbsp; &nbsp;color&#58;steelblue;
}
&#60;/STYLE&#62;

change 12pt; to 36; for an example
change font replace Verdana to Arial for example

BOT

BROCKSTER
04-20-2003, 07:49 PM
thanks u can get rid of that site now if ya want very much apprieciated so how do i change the size of the BROCKSTER bit?