رجاااء طلب كود كتابة تتبع الماوس رجاااء
phpbb2
phpbb2
<script type="text/javascript">
/* Cursor Trailor Text- By Peter Gehrig (http://www.24fun.com/) */
var x = 0, y = 0;
var step = 20;
var flag = 0;
var message = "ضع هنا الكلمة";
message = message.split("");
var xpos = new Array();
for (i=0; i<message.length; i++)
{
xpos[i]=-50;
}
var ypos = new Array();
for (i=0; i<message.length; i++)
{
ypos[i]=-50;
}
function handlerMM(e)
{
if (!e)
var e = window.event||window.Event;
if ('undefined' != typeof e.pageX)
{
x = e.pageX;
y = e.pageY;
}
else
{
x = e.clientX + document.body.scrollLeft;
y = e.clientY + document.body.scrollTop;
}
flag=1;
}
function makesnake()
{
for (i=message.length-1; i>=1; i--)
{
xpos[i] = xpos[i-1] + step;
ypos[i] = ypos[i-1];
}
xpos[0] = x + step;
ypos[0] = y;
for (i=0; i<message.length; i++)
{
var id = 'span'+i;
var thisspan = document.getElementById(id);
thisspan.style.left = xpos[i] + "px";
thisspan.style.top = ypos[i] + "px";
}
var timer=setTimeout("makesnake()",30);
}
</script>
<script type="text/javascript">
for (i=0;i<=message.length-1;i++)
{
document.write("<span id='span"+i+"'
style='position:absolute;left:0px;top:-50px;font-size:12px;font-family:Al-Kharashi
20;font-weight:bold;color:#ضع هنا رمز اللون المطلوب للكلام;'>");
document.write(message[i]);
document.write("</span>");
}
if (document.layers)
{
document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove = handlerMM;
makesnake();
</script>
الكود:
<p><!--webbot bot="HTMLMarkup" startspan --><style type="text/css">
.scroll {font-weight:bold; font-size:36; text-align: center; font-family: Verdana, Courier, Courier New;}
</style><!--webbot bot="HTMLMarkup" endspan -->
<!--webbot bot="HTMLMarkup" startspan --><script language="JavaScript1.2">
/*
By Mark Baker
Showcased on Dynamicdrive.com
For full source code, visit http://dynamicdrive.com
*/
if (document.all)
document.write('<script src="sinescroll.js"><\/script>')
</script><!--webbot bot="HTMLMarkup" endspan -->
<!--webbot bot="HTMLMarkup" startspan --><style>
.spanstyle {
position:absolute;
visibility:visible;
top:-50px;
font-size:10pt;
font-family:Verdana;
font-weight:bold;
color:black;
}
</style>
<script>
/*
Cursor Trailor Text- By Peter Gehrig (http://www.24fun.ch/)
Permission given to Dynamicdrive.com to feature script in it's archive.
For full source code, installation instructions, and 1000's more DHTML scripts,
visit http://dynamicdrive.com
*/
var x,y
var step=20
var flag=0
// ضع بالسطر التالي اسم موقعك
var message="eqla3soft.com "
message=message.split("")
var xpos=new Array()
for (i=0;i<=message.length-1;i++) {
xpos[i]=-50
}
var ypos=new Array()
for (i=0;i<=message.length-1;i++) {
ypos[i]=-50
}
function handlerMM(e){
x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX
y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY
flag=1
}
function makesnake() {
if (flag==1 && document.all) {
for (i=message.length-1; i>=1; i--) {
xpos[i]=xpos[i-1]+step
ypos[i]=ypos[i-1]
}
xpos[0]=x+step
ypos[0]=y
for (i=0; i<message.length-1; i++) {
var thisspan = eval("span"+(i)+".style")
thisspan.posLeft=xpos[i]
thisspan.posTop=ypos[i]
}
}
else if (flag==1 && document.layers) {
for (i=message.length-1; i>=1; i--) {
xpos[i]=xpos[i-1]+step
ypos[i]=ypos[i-1]
}
xpos[0]=x+step
ypos[0]=y
for (i=0; i<message.length-1; i++) {
var thisspan = eval("document.span"+i)
thisspan.left=xpos[i]
thisspan.top=ypos[i]
}
}
var timer=setTimeout("makesnake()",30)
}
</script><!--webbot bot="HTMLMarkup" endspan -->
<!--webbot bot="HTMLMarkup" startspan --><script>
<!-- Beginning of JavaScript -
for (i=0;i<=message.length-1;i++) {
document.write("<span id='span"+i+"' class='spanstyle'>")
document.write(message[i])
document.write("</span>")
}
if (document.layers){
document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove = handlerMM;
// - End of JavaScript - -->
</script><!--webbot bot="HTMLMarkup" endspan -->
<!--webbot bot="HTMLMarkup" startspan --><body
onLoad="makesnake()"
style="width:100%;overflow-x:hidden;overflow-y:scroll"><!--webbot
bot="HTMLMarkup" endspan -->
</p>
الكود:
<style>
.spanstyle {
position:absolute;
visibility:visible;
top:-50px;
font-size:8pt;
font-family:Verdana;
font-weight:bold;
}
</style>
<script>
// Your trailing message.
var message="ضعي هنا الكلام "
message=message.split(" ")
var step=8
var stepbasic=8
// Do not edit the varianles below
var x,y
var flag=0
var xpos=new Array()
for (i=0;i<=message.length-1;i++) {
xpos[i]=-100
}
var ypos=new Array()
for (i=0;i<=message.length-1;i++) {
ypos[i]=-100
}
var spacebetweenwords=new Array()
for (i=0;i<=message.length-1;i++) {
spacebetweenwords[i]=stepbasic+step*message[i].length-1
}
var colorstep=Math.round(255/message.length-1)
var colorrgb=new Array()
for (i=0;i<=message.length-1;i++) {
colorrgb[i]=i*colorstep
}
var wordcolor=new Array()
for (i=0;i<=message.length-1;i++) {
var colhex_left = Math.floor(colorrgb[i]/16)
var colhex_right= colorrgb[i]-(colhex_left*16)
if (colhex_left == 10) {colhex_left="A"}
if (colhex_left == 11) {colhex_left="B"}
if (colhex_left == 12) {colhex_left="C"}
if (colhex_left == 13) {colhex_left="D"}
if (colhex_left == 14) {colhex_left="E"}
if (colhex_left == 15) {colhex_left="F"}
if (colhex_right == 10) {colhex_right="A"}
if (colhex_right == 11) {colhex_right="B"}
if (colhex_right == 12) {colhex_right="C"}
if (colhex_right == 13) {colhex_right="D"}
if (colhex_right == 14) {colhex_right="E"}
if (colhex_right == 15) {colhex_right="F"}
wordcolor[i] =""+colhex_left+colhex_right
}
function handlerMM(e){
x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX
y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY
flag=1
}
function makesnake() {
if (flag==1 && document.all) {
for (i=message.length-1; i>=1; i--) {
xpos[i]=xpos[i-1]+spacebetweenwords[i-1]
ypos[i]=ypos[i-1]
}
xpos[0]=x+stepbasic
ypos[0]=y
for (i=0; i<message.length-1; i++) {
var thisspan = eval("span"+(i)+".style")
thisspan.posLeft=xpos[i]
thisspan.posTop=ypos[i]
}
}
else if (flag==1 && document.layers) {
for (i=message.length-1; i>=1; i--) {
xpos[i]=xpos[i-1]+spacebetweenwords[i-1]
ypos[i]=ypos[i-1]
}
xpos[0]=x+stepbasic
ypos[0]=y
for (i=0; i<message.length-1; i++) {
var thisspan = eval("document.span"+i)
thisspan.left=xpos[i]
thisspan.top=ypos[i]
}
}
var timer=setTimeout("makesnake()",30)
}
</script>
gta_cena كتب:يا أخي هل تم الحل لطلب غلق الموضوع
جميع الحقوق محفوظة لدليل الاشهار العربي