Rollover buttons with Publisher 2000

R

RonH

Is there any way to get roll-over buttons for web pages created using
Publisher 2000? By rollover button I mean where the text or button changes
colour when the mouse moves over it without actually clicking.

RonH.
Ottawa, Canada.
 
J

jrc

This should do it. You can play around with and make changes. I got from
bravenet.com

<style>

a:link{font-size : 10pt; font-family:arial; color:blue; }

a:visited{ font-size : 10pt; font-family:arial; color:blue;}

a:active{ font-size : 10pt; font-family:arial; color:blue; }

a:hover { border-width : thin; border-style: dotted; border-color: #808080;
background-color:#ffffff; font-size : 10pt; font-family:arial;
color:purple;}

</style>
 
L

Lizzzet

Thank you for posting the code - can you give me a little more help ?
I did insert - I see the code on the page but when I Preview the webpage,
there is nothing there.
I must be missing something.
 
D

David Bartosik - MS MVP

Publisher has no built in "web effects" features.
For a text color change that is a simple matter of using CSS.
The hover parameter to be exact. You can insert the CSS code for this on the
page with an html code fragment.
The code jrc posted would be fine but use only the a:hover.
The active and visited and link are already coded in the page by Publisher
based on your setting these colors under the custom color properties for the
pub doc.
These could override your css, besides you don't need conflicting or
duplicate code.

So you just insert

<style>
a.hover {color: #000000; font-family: Arial; font-weight: normal; font-size:
10pt; text-decoration:underline}
</style>

you of course customize the attributes as desired.
Color, font face, weight, size, and to underline or not.

This text hover is used on my site:
http://www.davidbartosik.com/

Now as for using buttons and swapping them that involves JavaScript. That's
more complicated. It can be done though if you know what you are doing.
First you find a script and then you insert it with a few modifications.

If you are interested in learning more about CSS and /or JavaScript then I
refer you to http://www.davidbartosik.com/web.htm
this page on my site has articles on these and other web topics.
Some of which can be implemented in a Pub doc and some that can't.

My site uses CSS, you can view the file yourself at
http://www.davidbartosik.com/db_ss.css
 
D

David Bartosik - MS MVP

You won't see the code in the preview only the effect.
If you want to use the textual color change I recommend using only

<style>
a.hover {color: #000000; font-family: Arial; font-weight: normal; font-size:
10pt; text-decoration:underline}
</style>


as the other parameters are already coded by Pub.
Publisher does not code for the hover.
 
R

RonH

David,

Thanks to you and JRC.

I had inserted JRC's code and with a little fiddling managed to get it to
work. I actually only changed the color attribute, which seems to work fine
for the effect I wanted. I initially did more but then the text would jump
if font and size differed from the Publisher parameters.

As for other effects, I don't yet "know what I am doing: as you put it but
am willing to dig a bit and try to learn. I'll check out some of the
articles on your site.

I am actually helping build my wife's page and her latest request is for
bubble pop up text when rolling over with the mouse. Do you know if this is
one of the effects that can be inserted into Publisher 2000?

RonH.
 
R

RonH

Awesome! I think I'm starting to get the hang of this :)

Thanks for the pointers!

RonH.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top