script conflict
-
- Beginner
- Posts: 1
- Joined: Sun May 19, 2002 7:23 pm
script conflict
After I added your menu to my page, my mouse trail stopped working. I think there is probably a conflict somewhere but I don't know where as I am new to javascript. My trail uses a body onload command
Re: script conflict
Hi Amy
We can't help you if you don't give any link to your website...
fr Bill
We can't help you if you don't give any link to your website...
fr Bill
Re: script conflict
The Milonic Menu does not use onload. The problem most likely lies in a function conflict between our menu and the trail scripting you are using. As Bill says, if you have a website using both we can look at then we can troubleshoot for you, otherwise I'm afraid there is little we can do.
Cheers,
Yadin
Cheers,
Yadin
Re: script conflict
duh, sorry! The page is not yet posted so I can't give you a link, so here's the code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML dir="LTR" lang="en">
<!-- Alfonso Loera Music Scholarship-->
<!-- Created by Amy Wescott -->
<!-- October 2001-->
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="keywords" content="Alfonso Loera, Muskegon, music, scholarship, Muskegon Community Foundation Fund">
<style type="text/css">
.spanstyle {
position:absolute;
visibility:visible;
top:-50px;
font-size:8pt;
font-family:Verdana;
color:"#6666ff";
}
</style>
<script>
var x,y
var step=20
var flag=0
var message="alfonso "
message=message.split("")
var xpos=new Array()
for (i=0;i<=message.length-1;i ) {
xpos=-50
}
var ypos=new Array()
for (i=0;i<=message.length-1;i ) {
ypos=-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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML dir="LTR" lang="en">
<!-- Alfonso Loera Music Scholarship-->
<!-- Created by Amy Wescott -->
<!-- October 2001-->
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="keywords" content="Alfonso Loera, Muskegon, music, scholarship, Muskegon Community Foundation Fund">
<style type="text/css">
.spanstyle {
position:absolute;
visibility:visible;
top:-50px;
font-size:8pt;
font-family:Verdana;
color:"#6666ff";
}
</style>
<script>
var x,y
var step=20
var flag=0
var message="alfonso "
message=message.split("")
var xpos=new Array()
for (i=0;i<=message.length-1;i ) {
xpos=-50
}
var ypos=new Array()
for (i=0;i<=message.length-1;i ) {
ypos=-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
Re: script conflict
I too have a script conflict. I have a scrolling message javascript that will not work. I tried to combine the onloads into 1 but no luck.
Re: script conflict
You page seems to work fine in IE, but netscape is having issues. I have looked over things and can't find the problem, I'll have to defer to Andy to look at the code and see if he can find the issue.
Yadin
Yadin
Re: script conflict
i think you have to code the onload command a little different.
ex: Onload() example;example2 that snytax is close but you will have to play with it. also try looking at a javascript help file just do a search and look a the onload command and see what it says if you can find one. good luck
ex: Onload() example;example2 that snytax is close but you will have to play with it. also try looking at a javascript help file just do a search and look a the onload command and see what it says if you can find one. good luck
Re: script conflict
Amy,
To get your mouse tails back, do the following:
Place the 2 menu js files IMMEDIATELY following the 'body' statement; and,
be sure that onload="makesnake();" follows the word 'body' and before the style statement.
Then your mouse tails will work.
Andre
(decent jscripter)
To get your mouse tails back, do the following:
Place the 2 menu js files IMMEDIATELY following the 'body' statement; and,
be sure that onload="makesnake();" follows the word 'body' and before the style statement.
Then your mouse tails will work.
Andre
(decent jscripter)