Closed Thread Icon

Preserved Topic: DHTML Menu (2) Help ! Pages that link to <a href="https://ozoneasylum.com/backlink?for=18296" title="Pages that link to Preserved Topic: DHTML Menu (2) Help !" rel="nofollow" >Preserved Topic: DHTML Menu (2) Help !\

 
Author Thread
FatRod
Bipolar (III) Inmate

From: #
Insane since: May 2002

posted posted 05-13-2002 21:13

<edit> if anyone is interested you can see the outcome here http://www.freewebz.com/corkey/test/index.htm i have posted anther link in site reviews for feedback </edit>

Hello, can anyone help?

This is the .JS for a DHTML Menu system i want to implement, similar to http://www.ozones.com/simpleworld - she works fine but opens up by default on MFX2, and i need her to open on MFX4 on load, or not at all.


<JS>
function MFXiSM(){
cl=0;
gSL=0;
spd=40;
stp=6;
L=new Array('MFX0','MFX1','MFX2','MFX3','MFX4','MFX5','MFX6','MFX7','MFX8','MFX9','d1','d2');

var d=document;
nn=d.layers?1:0;
rng=0;wO=-1;wait=-1;
var n=navigator;
op=n.userAgent.toLowerCase().indexOf("opera")!=-1;mac=d.all && n.appVersion.toLowerCase().indexOf("mac")!=-1;OM=op

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 05-13-2002 22:10

I see the problem!! You have rassberry slimies in your code

Just kidding, I'll have a look at it when I get home, or someone may be along shortly.

I just wanted to say that when you post code you may want to put in the UBB code tag:

code:

or click on "Disable Slimies" when you post.

Later,
C:\


~Binary is best~

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 05-13-2002 22:48

FatRod: If I've understood the question correctly this time you could just use something like:

code:
<body onload='whicherverfunctionitis(4)'>



Emps

FatRod
Bipolar (III) Inmate

From: #
Insane since: May 2002

posted posted 05-14-2002 12:09

Hi,

I really needed to understand which function within the code automaticly opened the menu up 'MFX2' onload. I need either all closed or MFX 4 open

ATM it looks like this - basic example ;P

Company(MFX1)
Service (MFX2)
Blar
Blar
Blar
Links(MFX3)
Contact (MFX4)

ahhhhhhhhhhhhhhhhhhh



Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 05-14-2002 13:20

FatRod: I could be wrong but as far as I can tell it shouldn't open on the second menu - did you change any of the code when you installed it? Try just a basic installation and post the link here (try comparing it with their demo as that doesn't open on anything by default).

Emps

FatRod
Bipolar (III) Inmate

From: #
Insane since: May 2002

posted posted 05-14-2002 13:33

Hi,

<edit2> problem solved -

onLoad="MFXiSM();MFXrM(4);hilite_mo(8, main03,'mainclick')"

Thanks for your help emps, c:\

</edit2>


I did not alter the code, maybe the answer lies in the HTML of the page, not the external .JS

<edit>: i just found this in the HTML:

onLoad="MFXiSM();MFXrM(2);hilite_mo(6,main02,'mainclick')"

- looks like the huckleberry - what would i delete to disable the onload: open function? </edit>

danke

FatRod

"Far too many people spend their lives reading the menu instead of enjoying the banquet" - Oscar Wilde

[This message has been edited by FatRod (edited 05-14-2002).]

[This message has been edited by FatRod (edited 05-14-2002).]

[This message has been edited by FatRod (edited 05-24-2002).]

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 05-14-2002 17:12

So did you find the problem? I think deleting the onLoad from the body would do the trick.

Where did you find the code for that menu??

Later,
C:\


~Binary is best~

FatRod
Bipolar (III) Inmate

From: #
Insane since: May 2002

posted posted 05-15-2002 13:32

Hi C:/

I borrowed some of the code from a commercial website: My project is non-commercial and a proof of concept. I am not one for *stealing* code, and have included a link to the original website in the code - can I get in trouble for this, i cant see a copyright in the code and no contact details to ask permission...

Is there anything i should do, should I not use the code, i dont want to get in trouble.

FatRod


CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 05-15-2002 16:13

FatRod: no no no, I wasn't trying to be the "Code Police" I was just wondering if you had found a dHTML site that I hadn't seen. That's all No worries, I won't tell but it is good to put a link to the site or just ask them if you can use it.

Then again if I wrote a dHTML script I would let anyone use it as long as they left the credit to me in the code.

Later,
C:\


~Binary is best~

FatRod
Bipolar (III) Inmate

From: #
Insane since: May 2002

posted posted 05-15-2002 16:40

C:\

i'll post a link to the site in reviews in a few weeks

thanks for the info.


FatRod

"Far too many people spend their lives reading the menu instead of enjoying the banquet" - Oscar Wilde



[This message has been edited by FatRod (edited 05-24-2002).]

FatRod
Bipolar (III) Inmate

From: #
Insane since: May 2002

posted posted 05-24-2002 16:38

.

« BackwardsOnwards »

Show Forum Drop Down Menu