Rollover button problem  
Author Message
biggles





PostPosted: 2004-11-10 6:41:00 Top

java-programmer, Rollover button problem I'm building a site in Dreamweaver MX where I have a set of rollover
buttons. These buttons go dim when the mouse is over them. When clicked,
another image appears on a different part of the page (I built this using
the Set Nav Bar image function). This all works fine on my Mac, using my
browser safari and Internet Explorer. But on a PC using Internet Explorer
the rollovers dim but when clicked nothing happens. Does anybody know why?
I can paste the code if that helps anybody . I'm not too good at
understanding Java script code so let me know what bits might help



Thanks



Kate


 
biggles





PostPosted: 2004-11-10 6:41:00 Top

java-programmer >> Rollover button problem I'm building a site in Dreamweaver MX where I have a set of rollover
buttons. These buttons go dim when the mouse is over them. When clicked,
another image appears on a different part of the page (I built this using
the Set Nav Bar image function). This all works fine on my Mac, using my
browser safari and Internet Explorer. But on a PC using Internet Explorer
the rollovers dim but when clicked nothing happens. Does anybody know why?
I can paste the code if that helps anybody . I'm not too good at
understanding Java script code so let me know what bits might help



Thanks



Kate


 
Michael Winter





PostPosted: 2004-11-10 7:21:00 Top

java-programmer >> Rollover button problem On Tue, 9 Nov 2004 22:41:59 -0000, biggles <email***@***.com>
wrote:

[snip]

> I can paste the code if that helps anybody . I'm not too good at
> understanding Java script code so let me know what bits might help

If you can manage it, a link would be best. Preferably one to a page that
is as simple as possible but still displays the problem. It's much easier
to see something in action that to wade through code, especially as you
don't know what's wrong.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
 
 
Andrew Thompson





PostPosted: 2004-11-10 15:09:00 Top

java-programmer >> Rollover button problem On Tue, 09 Nov 2004 23:21:30 GMT, Michael Winter wrote:

> If you can manage it, a link would be best. Preferably one to a page that
> is as simple as possible but still displays the problem. ..

That sounds like a small, self-contained, correct, example. For tips..
<http://www.physci.org/codes/sscce.jsp>

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
 
 
kate jackson





PostPosted: 2004-11-10 16:56:00 Top

java-programmer >> Rollover button problem
Hi Mike,

can i send you the link via email?

Thanks,

Kate

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
 
Andrew Thompson





PostPosted: 2004-11-10 17:15:00 Top

java-programmer >> Rollover button problem On 10 Nov 2004 08:56:23 GMT, kate jackson wrote:

> Hi Mike,
>
> can i send you the link via email?

..can you post it here?

It will probably get quicker answers since
even (the mighty) Mike has to sleep!

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
 
 
kate jackson





PostPosted: 2004-11-10 18:06:00 Top

java-programmer >> Rollover button problem
Fair enough, we all need sleep I guess! Here's the link...

http://www.jindesigns.com/portfolio_graph_logos.html

PS I read your article. I'll no longer paste a message without putting a
link in to the problem. Sorry for wasting anyone's time. You made some
good points.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
 
Andrew Thompson





PostPosted: 2004-11-10 18:42:00 Top

java-programmer >> Rollover button problem On 10 Nov 2004 10:06:23 GMT, kate jackson wrote:

> Fair enough, we all need sleep I guess!

I've been trying some experiments that invlove a drip of
coffee, and some strange herb from south America, but it is
trciky to judge if the halucinations are actually dreams.. ;)

>..Here's the link...
>
> http://www.jindesigns.com/portfolio_graph_logos.html

Now we're cooking with gas.

The first thing to remember with anything to do with a web-page is
that the HTML is like a 'building foundation'. If it is invalid,
all bets are off as to how the multitude of user agents (browsers)
might render it. Your 'building might fall down'.

To check if HTML is valid, there is a very handy tool here..
<http://validator.w3.org/>

The results for this page are here..
<http://validator.w3.org/check?uri=http://www.jindesigns.com/portfolio_graph_logos.html>

There's a few problems you need to look at before the
problems with script can be dealt with (and fixing the
HTML might *fix* the script).

> PS I read your article. I'll no longer paste a message without putting a
> link in to the problem.

*Sometimes* it might be appropriate, but often a
(SHORT) page and a link is more useful.

>..Sorry for wasting anyone's time. You made some
> good points.

Keep displaying that you are willing to read links and listen
to advice and you will get lots of help here. It's a great group.

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
 
 
kate jackson





PostPosted: 2004-11-10 18:56:00 Top

java-programmer >> Rollover button problem
gosh, what a lot of errors on my page. I'll go and make the changes now
and see if it helps the script. Thanks for the link to the validator
website
- this is great.

Kate



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
 
David Postill





PostPosted: 2004-11-11 16:07:00 Top

java-programmer >> Rollover button problem In article <cmrh2n$50r$email***@***.com>, on Tue, 9 Nov 2004 22:41:28 -0000, "biggles"
<email***@***.com> wrote:

| I'm building a site in Dreamweaver MX where I have a set of rollover
| buttons. These buttons go dim when the mouse is over them. When clicked,
| another image appears on a different part of the page (I built this using
| the Set Nav Bar image function). This all works fine on my Mac, using my
| browser safari and Internet Explorer. But on a PC using Internet Explorer
| the rollovers dim but when clicked nothing happens. Does anybody know why?
| I can paste the code if that helps anybody . I'm not too good at
| understanding Java script code so let me know what bits might help

You have posted to a java newsgroup. Java is not the same as JavaScript
(despite any similarities in the name).

Ask your question in comp.lang.javascript.


 
 
Michael Winter





PostPosted: 2004-11-13 5:01:00 Top

java-programmer >> Rollover button problem On 10 Nov 2004 10:06:23 GMT, kate jackson <email***@***.com> wrote:

[snip]

> http://www.jindesigns.com/portfolio_graph_logos.html

[snip]

Sorry for the delay. I encountered some intriguing rendering bugs whilst
constructing a demonstration. In addition, because you took the site down,
I had problems finishing said demo.

While the page was up, I tested with Opera and nothing happened there. I
forget how Mozilla did. I imagine the cause to be simple: Dreamweaver's
crappy scripts. Any code I've seen on the Web generated by DW has been
abismal.

What precisely was supposed to happen when you clicked on one of the
images? I assume a full version of the image was to appear to the right of
the page. That's simple enough.

On another matter, particularly relevant as it seems you're performing a
site-wide makeover, you should really drop the table layout. If you care
to look at
<URL:http://www.mlwinter.pwp.blueyonder.co.uk/jin/portfolio.html>, you'll
see an equivalent implementation with no tables in sight.

As a Web design company, I think it's a rather poor advertisment to be
using implementation techniques that should have died a good couple of
years ago. That particular page[1] (2KBs), plus the images (12KBs),
stylesheet (2KBs), and scripts (2.5KBs), is smaller than the mark-up of
your original page *alone* (21.9KBs). I think that goes to show just how
verbose table layouts are.

With that demonstration, I added my own rollover script which is much
easier to maintain that DW's. A brief description can be found at
<URL:http://www.mlwinter.pwp.blueyonder.co.uk/image-swap/>.

Mike


[1] I know it's incomplete, but the remaining content won't add that much
to the overall size.

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
 
 
orlando_ribas





PostPosted: 2006-3-18 14:19:00 Top

java-programmer >> Rollover button problem Hi, I have a rollover button, but i have downloaded the code, and now i don?t
now how to set the code to go to another scene, or to another frame name.
Usually in normal buttons i put the gotoAndPlay("sfsffdsdf") function. But here
it doesn?t work.
I have in the first frame this code:

stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}

And in the last frame i have a stop().

Tell me please what am i gonna put here to go to another scene or to another
frame name.
Thanks.

 
 
orlando_ribas





PostPosted: 2006-3-18 14:46:00 Top

java-programmer >> Rollover button problem Hi, I have a rollover button, but i have downloaded the code, and now i don?t
now how to set the code to go to another scene, or to another frame name.
Usually in normal buttons i put the gotoAndPlay("sfsffdsdf") function. But here
it doesn?t work.
I have in the first frame this code:

stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}

And in the last frame i have a stop().

Tell me please what am i gonna put here to go to another scene or to another
frame name. After all this is a button...
Thanks.

 
 
Devendran





PostPosted: 2006-3-18 14:59:00 Top

java-programmer >> Rollover button problem just use

_root.gotoAndPlay("sceneName",frameNumber);

(or)

_root.gotoAndPlay("sceneName","frameLabel");

(or)

_root.gotoAndPlay("frameLabel");

instead of root u can put _parent or your particular movieclip names here,its
depend upon your movieClips position.


 
 
orlando_ribas





PostPosted: 2006-3-18 17:01:00 Top

java-programmer >> Rollover button problem It works thanks. By the way, i have a streaming mp3 in the scene 1, but when i
click to go to another scene (or eitheir in the same scene with the frame
label) the sound loops. Is there a way to play the sound through all scenes?
sorry, i hope you understand, i?m a begginer.

thanks

 
 
Uncle Jim





PostPosted: 2006-3-18 21:40:00 Top

java-programmer >> Rollover button problem Thanks for the help and the question, I too was about to ask the same
question, but Orland was way ahead of me with the script.

Thanks again to you both

Jim



"Devendran" <email***@***.com> wrote in message
news:dvgb59$5dl$email***@***.com...
> just use
>
> _root.gotoAndPlay("sceneName",frameNumber);
>
> (or)
>
> _root.gotoAndPlay("sceneName","frameLabel");
>
> (or)
>
> _root.gotoAndPlay("frameLabel");
>
> instead of root u can put _parent or your particular movieclip names
> here,its
> depend upon your movieClips position.
>
>


 
 
Devendran





PostPosted: 2006-3-20 17:47:00 Top

java-programmer >> Rollover button problem Yes,

If u have imported your sound to library. follow this method.

create one sound object, and attach your imported sound to this object. now u
can start/stop/pause/vchange olume of sound using this sound object.

//import sound. right click sound in the library and give lingage name.

var mySound:Sound = new Sound();
mySound.attachSound("linkageName");
//Start Sound
mySound.start();
//
mySound.onSoundComplete = function(){
mySound.start();
}





 
 
damilstir





PostPosted: 2007-3-21 15:29:00 Top

java-programmer >> Rollover button problem I have three images that I have made into button symbols and have assigned one
image to the Up, one to the Over and one to the Down. Everything works fine
when I have only the Up and the Over stacked on top of eachother using the
"enable simple buttons" command but when I stack the Down image on top of the
other two the Over stops working.
THanks,
Damilstir

 
 
mclem





PostPosted: 2007-3-21 20:04:00 Top

java-programmer >> Rollover button problem Are you saying you made 3 different buttons for the 3 states? because the three images should be 3 frames inside the button for the different states.