PDA

View Full Version : Help needing in JavaScript/Html !!!



Frenchy Pilou
09-15-03, 02:47 PM
Is it possible to chain 2 same actions in a same "OnMouseOver" ? and if yes what is the syntax ?
It's for clear 2 images in the same time (or more!) :)
(of course the i1.src = erase image (same size of the 2 others 200*200) :)
The On.Mouse.Over is for to be accepted for the System of post of Zbc :rolleyes:
Thx by advance
Pilou
something like folow (alas this don't work :(
and 2 folowing "OnMouseover" in the same <A> </A> no more :(

Kathy
09-15-03, 03:50 PM
Not quite sure if these are your answers...but hope they help:
http://www.macworld.com/2001/03/bc/23howtojsme-multiple/
http://javascript.internet.com/miscellaneous/change-two-images.html
http://www.yourhtmlsource.com/images/rollovers.html
http://insights.iwarp.com/advanced/javascript/mrollovers.html

Frenchy Pilou
09-16-03, 12:37 AM
Hi kathy
I shall go to see it :)
Maybe I shall found something :rolleyes:
In any case Thanks a lot :)
Pilou
Ps I believe than your last link can be resolve my problem :)
I am a little rusted for this computer language :rolleyes:

Furious George
09-16-03, 04:18 PM
If you didn't already find the answer... you just need to separate your two instructions with a semicolon.

So



would become



Note that I had to butch onMouse0ver to get the board to accept my post and I removed the "s, which you don't need in this case.

Frenchy Pilou
09-16-03, 04:33 PM
Hi furious G
If your trick works, you win the prize of the Syntaxis concision !!!
I shall go to test that and if I can put more than 2 It's will be the paradise :D
Pilou

Frenchy Pilou
09-16-03, 04:56 PM
Hi Furious GGGGGG
That's WORKSSSSSSSSSSSSSSSSS !!!!!!!! :cool: :cool: :cool: :cool: :cool: :cool: :cool:
And with no limit (I supose <255 Caracters :D

With these trick make a Menu will be a child game without complicated javaScript procedure of swaping :)
Your are the King of Java :cool:
Syntaxe is the more difficult on all the languages :D
Pilou

Furious George
09-16-03, 04:58 PM
I wouldn't go that far... but I knew it would work because I tested it before I sent it. :)

If you're worried about how long the line of code is you can make a Javascript function and simply call the function in your mouse0ver event.

If you need any help, just let me know.

Frenchy Pilou
09-16-03, 05:04 PM
Thx I keep your adress :) for the next headache :D
Pilou
Ps You right ! That don't work with the "" :)
Ah! La syntaxe :D
Pss Your 3D fightclub is amazing :)

Furious George
09-16-03, 08:47 PM
Glad you like the FightClub... I've been hanging out there for a little over a year now & I have to say it's really helped my skills grow.

Frenchy Pilou
09-19-03, 06:37 AM
testa.ZIP (http://www2.zbrushcentral.com/uploaded_from_zbc/200402/user_file-1063974528baq.zip)
Hello Furious or other Gurus
A ball must be change color when the "On Mouseover"
Works fine in IExplorer !
Is this little file works under Netscape Navigator ?
No I supose !
WHy and wHat I must make for resolve this?
Netscape don't accept the syntaxe? Some special instruction ?...
The code is a mix of PhotoImpact (super program better of use than photoshop and he can make Web page too :) and my little fingers :D
Have a nice day!
Pilou

juandel
09-19-03, 10:09 AM
salut, Pilou!

seems to work fine with netscape 7.0 (i dont know for sure - are the horizontal white stripes above and below the sphere intended?) - but netscape 4.6 (antique but i am still using it) doesnt like it, despite all available java-settings being enabled.

- juju

Frenchy Pilou
09-19-03, 10:58 AM
Hi Juandel
No Straight lines ! Just ball :)
Try it in IE ... :)
Pilou
Ps I have netscape 3 !!! :rolleyes:
More antic :D

Furious George
09-19-03, 04:12 PM
I don't have Netscape installed. I don't see why it shouldn't work though.

I would add a semicolon ; between the onMouseOver and onMouseOut but I don't believe it's required. Also, you capitalization is techinically wrong; but again, I don't think that matters.

I generally don't develop for anything other than IE 5 but that's mainly because the vast majority of my work is done for a corporate Intranet & all of the corporate machines are using (at least) IE 5. Any time you start using dynamic features like this, your risk alienating the non-mainstream browser users.

If you need something specific, I could throw it together for you in Fireworks (which should be compatible with Netscape 4.x); but the code itself will look ugly because it's more general purpose.

Frenchy Pilou
09-19-03, 04:44 PM
Hi furious
I don't want specific thing!
Just find something simple who can work on these 2 navigators :)
But they are in perpetual war :(
So they have different syntax for the same thing like Div = Layers etc...
So a headache for the code!!!
And maybe Netscape want a ";" at each endline
I shall continue my research :rolleyes:
In any case thx for your help :)
Pilou
ps You mean capitalisation wrong like
onmousover = OnMousOver = ONMOUSOVER...
maybe syntaxe but i don't believe...
(there is no"e" at mous"e" for the Zbctext accept post )