script conflict

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
cstoner@cstoner.net
Beginner
Beginner
Posts: 1
Joined: Sun May 19, 2002 7:23 pm

script conflict

Post by cstoner@cstoner.net »

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
Guest

Re: script conflict

Post by Guest »

Hi Amy

We can't help you if you don't give any link to your website...

fr Bill
Guest

Re: script conflict

Post by Guest »

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
Guest

Re: script conflict

Post by Guest »

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
Guest

Re: script conflict

Post by Guest »

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.
Guest

Re: script conflict

Post by Guest »

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
Guest

Re: script conflict

Post by Guest »

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
Guest

Re: script conflict

Post by Guest »

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)
Guest

Re: script conflict

Post by Guest »

Thank you Andre, it worked like a charm!
Amy
Post Reply