hover buttons

L

leeray

I would create a button, choose an AU file to make a sound effect with a
"mouse over". Now when I create a Hover Button and bring sound into it, it
doesn't display in my browser. Any suggestions?
 
S

Steve Easton

Hover buttons won't work in Windows XP / IE 6 because they no longer come
with Java Virtual Machine.
Most people have stopped using them.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
J

JCO

hover buttons have been replaced with Interactive Buttons.
This can be found in the "insert" menu.
I'm not sure when this feature came about. I'm using FP2003. My version
has the hover button depressed so you can't find it. The Interactive Button
command is in plain site.
 
J

Jim Buyens

-----Original Message-----
I would create a button, choose an AU file to make a
sound effect with a "mouse over". Now when I create a
Hover Button and bring sound into it, it doesn't display
in my browser. Any suggestions?

First, add this script to the <head> section of your page:

<script language="JavaScript">
<!--
function playSound(path) {
var b;
var d=document;
var e;
var es;
var i;
var se="<EMBED SRC='"+path+"' HIDDEN=TRUE LOOP=FALSE
AUTOSTART=TRUE>";
if(d.body){
b = d.body;
}
if(d.getElementsByTagName) {
es = d.getElementsByTagName('embed')
for(i=0; i<es.length; i++) {
e=es(i);
if( e.src==path ) {
if(e.removeNode) {
e.removeNode();
}
break;
}
}
if(b&&b.insertAdjacentHTML) {
b.insertAdjacentHTML("beforeend",se);
}
}
}
// -->
</script>

Then, create a picture to use as your button, and surround
it with a hylerlink like this:

<a href="javascript:;"
onmouseover="playSound('../images/ding.wav');">
<img src="../images/mybutton.gif"></a>

where ../images/ding.wav is the relative path from the
current page to your sound file.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
J

Jon

Even if you could be sure every PC came with a JVM would you use Hover
Buttons :)

Jon
Microsoft MVP - FP
 
L

leeray

So what do you suggest to use for sound effects on a web page? I only know
how to use FrontPage to create hover buttons. It would be nice to have an
image that people could point at and hear a sound effect.


Hover buttons won't work in Windows XP / IE 6 because they no longer come
with Java Virtual Machine.
Most people have stopped using them.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
L

leeray

What is your suggestion to replacing hover buttons? I have FrontPage 2000.


Leeray,

Hover Buttons require the JVM by Microsoft.

You may want to consider using something other than the hover buttons,
because if you can't see them, you can be assured others won't be able to
either.

You can use java script to achieve mouseover effects, and they are widely
supported in all browsers.

JDR
******************
 
L

leeray

What is your idea for replacing Hover Buttons? I use FrontPage 2000.

Even if you could be sure every PC came with a JVM would you use Hover
Buttons :)

Jon
Microsoft MVP - FP
 
T

Thomas A. Rowe

You would use JavaScript image mouse overs, see:

http://www.devscripts.com/visit.php?sId=3636

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle,
MS KB Quick Links, etc.
==============================================
 
L

leeray

Since I have FrontPage 2000 and it's by no means obsolete and just because
Microsoft's license will expire to put MSJavaVirtual Machine on their Update
page. Why not just encourage viewers of one's site to download Java Software
to begin with? After all, Java has been around a long time and I would think
their software will always be an integral part of web page authoring.
Visit http://www.java.com/en/index.jsp


Jim Buyens said:
-----Original Message-----
I would create a button, choose an AU file to make a
sound effect with a "mouse over". Now when I create a
Hover Button and bring sound into it, it doesn't display
in my browser. Any suggestions?

First, add this script to the <head> section of your page:

<script language="JavaScript">
<!--
function playSound(path) {
var b;
var d=document;
var e;
var es;
var i;
var se="<EMBED SRC='"+path+"' HIDDEN=TRUE LOOP=FALSE
AUTOSTART=TRUE>";
if(d.body){
b = d.body;
}
if(d.getElementsByTagName) {
es = d.getElementsByTagName('embed')
for(i=0; i<es.length; i++) {
e=es(i);
if( e.src==path ) {
if(e.removeNode) {
e.removeNode();
}
break;
}
}
if(b&&b.insertAdjacentHTML) {
b.insertAdjacentHTML("beforeend",se);
}
}
}
// -->
</script>

Then, create a picture to use as your button, and surround
it with a hylerlink like this:

<a href="javascript:;"
onmouseover="playSound('../images/ding.wav');">
<img src="../images/mybutton.gif"></a>

where ../images/ding.wav is the relative path from the
current page to your sound file.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
L

leeray

They work if a person has Java installed in their machine. I have Windows XP
and I downloaded the Java Virtual Machine from Windows Update for XP. I
have also read that Microsoft will support updates for JVM until September
2004. Since Java is an integral part of Web page authoring, why not just
send people to this companies site, the creators of the JVM.
http://www.java.com/en/index.jsp

Hover buttons are easy to create in FrontPage 2000 and easy to use. Perhaps
the newer versions of FrontPage use "insert buttons" and do not promote the
Hover Buttons but Hover Buttons are still as normal and prevalent as DHTML.
:)


Hover buttons won't work in Windows XP / IE 6 because they no longer come
with Java Virtual Machine.
Most people have stopped using them.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
S

Steve Easton

Not really, considering what you can do with CSS and javascript.
But the problem with javascript is, supposedly 6% of "surfers" have
javascript disabled.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
S

Steve Easton

Don't confuse JavaScript with Java, as they are two entirely different
things.
Java / JVM also called AWT ( Abstract Windows Toolkit ) uses class files
and applets to create it's effects, and runs from the compressed / zipped
class libraries in C:\Windows\Java\Packages.
javascript is a standalone scripting language that runs in the browser and
requires no external support other than the browser.

Also, imho hover buttons are somewhat "antiquated" and add quite a bit of
scripting to a page in order to function.
You can accomplish the same effect as hover buttons ( with the exception of
the glow effect ) using CSS and dhtml and the pages will load faster.

Here are some *simple* examples.
http://www.95isalive.com/test/hoverbutton.htm


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
J

Jim Buyens

leeray said:
Since I have FrontPage 2000 and it's by no means obsolete and just because
Microsoft's license will expire to put MSJavaVirtual Machine on their Update
page. Why not just encourage viewers of one's site to download Java Software
to begin with? After all, Java has been around a long time and I would think
their software will always be an integral part of web page authoring.
Visit http://www.java.com/en/index.jsp

That's certainly an option. However, some percentage of visitors will
opt not to download a JVM, and you're going to lose those visitors.
You have to decide how many visitors that will be, and how much they
matter.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
J

Jack Brewster

I would argue that Java is _not_ an integral part of web page authoring
since you don't need it to build websites.

If the user doesn't have a JVM, Java-based Hover buttons don't work at all.
That doesn't mean the won't rollover or make a sound. It means they
_don't_work_as_links_.

That means users without a JVM will not be able to navigate a site that uses
them. They won't be able to get off of your home page to find your
products, or even your contact page. Not to mention the big empty gray
boxes that will stand out like a sore thumb. At least with the alternatives
such as JavaScript or CSS, the links will still work.

A website you can't navigate is basically a digital poster.

If you use your website for business, you should never require an additional
component (Flash, Java, etc.) before visitors can use your site. Even if
you have the best product in the world, if visitors can't (don't have
install privileges) or won't install browser add-ons, you may lose the sale.
Users who don't know about JVMs and "all that web nonsense" will just think
your site is broken. A broken site cuts into the credibility of a company
and their products.

Even if your site is personal and not for profit, what's the point of
putting up a site if visitors can't navigate it?
 
L

leeray

People are posting sites to get java script from, I tried to use that script
but I am not a Webmaster, just a basic web page author. So, does this mean I
need to upgrade to FrontPage 2004, just to be able to add a few buttons and
images that will play sounds on mouse-overs?


leeray said:
Since I have FrontPage 2000 and it's by no means obsolete and just because
Microsoft's license will expire to put MSJavaVirtual Machine on their Update
page. Why not just encourage viewers of one's site to download Java Software
to begin with? After all, Java has been around a long time and I would think
their software will always be an integral part of web page authoring.
Visit http://www.java.com/en/index.jsp

That's certainly an option. However, some percentage of visitors will
opt not to download a JVM, and you're going to lose those visitors.
You have to decide how many visitors that will be, and how much they
matter.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
J

Jim Buyens

leeray said:
People are posting sites to get java script from, I tried to use that script
but I am not a Webmaster, just a basic web page author. So, does this mean I
need to upgrade to FrontPage 2004, just to be able to add a few buttons and
images that will play sounds on mouse-overs?

Well yes, if the feature you want doesn't exist in your curent version
of FrontPage, and you can't solve the problem with scripting, then you
need to buy a gadget of some kind.

I'm not a big third-party tools guy; I keep my software up-to-date and
write a lot of scripts. But there are probably gadgets you could add
to FP2000 that would do what you want.

But to me, if you're going to buy something, and a newer release of
FrontPage has the feature you want, that's probably the best value for
your money.
 

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