how to create a tooltip on a hover button?

Status
Not open for further replies.

tigh

Baseband Member
Messages
23
I am using MS FrontPage to create hover buttons (not images). These are hyperlinks to different pages and I would like to include a tooltip which pops up when the mouse hovers over the link. There is no option in the hover button properties to create a tooltip.

This is the code
<applet code="fphover.class" codebase="./" width="120" height="24">
<param name="text" value="Button Text">
<param name="color" value="#000080">
<param name="hovercolor" value="#0000FF">
<param name="textcolor" value="#FFFFFF">
<param name="effect" value="glow">
<param name="url" valuetype="ref" value=Hi-Arts "http://www.hi-arts.co.uk/">
</applet>

Does anyone know how to include a tooltip or alt text?
Thanks.
 
Thanks. I'd be happy to use Flash if it was my choice. Unfortunately I have to use the software provided by my employer. I would still be interested to know if there is a FrontPage solution.
 
the organisation supports only FrontPage. If someone can give me the html then I can use the code.
 
Here are some i searched up, I'am not too sure if they work or don't maybe you can give them a bash thought.


--- (1) --------------------------------------------------------------------
Q. How do I get a tool tip when I mouseover a hotspot on an image map I created in FrontPage?
A. FrontPage 2002 has a button in the hyperlink dialog box called "screen tip". Selecting this button when inserting a hotspot on an image map will create the necessary code to create a hot spot when the mouse is placed over the hotspot on an image map in the browser.

In FrontPage 2000, you will need to manually insert the:
Alt="tool tip text value here"
attribute in the <area> tag in HTML view. The <area> tag for each of the hot spots in HTML should look something like:

<area alt="click here for tips" coords="294, 115, 358, 145" shape="rect" href="http://at-frontpage.com/tips.htm">
top of page
---------------------------------------------------------------------------

Or this one - (Which "looks" to work)

--- (2) --------------------------------------------------------------------

Make the macro:
The example uses FrontPage 2000 but should work fine in all newer versions as well

Launch FrontPage and click Tools - Macro - Macros...

A small macro editor window will open

In the Macro Name field enter spooky_Diet and click the Create button

The Visual Basic Editor will open

The main code window will show the following code:
Sub spooky_Diet()
End Function

We will be adding a Subroutine and a Function so we don't really need the existing Sub spooky_Diet().

Highlight and delete the code:
Sub spooky_Diet()
End Function

Next copy the following code:
Click the "Highlight All" button and copy (ctrl-c)


Sub spooky_Diet()
Dim innerHTML As String, Webbot As String
If Not FrontPage.ActiveDocument Is Nothing Then
If FrontPage.ActivePageWindow.ViewMode = fpPageViewNormal Then
innerHTML = ActiveDocument.body.innerHTML
Do
Webbot = Ellipse(innerHTML, "")
If Webbot = ""Then Exit Do
If InStr(Webbot, "bot=""Database") <> 0 Then
innerHTML = Replace(innerHTML, Webbot, "")
End If
Loop
ActiveDocument.body.innerHTML = innerHTML
End If
End If
End Sub

Function Ellipse(i, s, e)
Dim f As Integer, t As Integer
Ellipse = ""
f = InStr(1, i, s, 1)
If f > 0 Then
t = InStr(f + 1, i, e, 1)
If t > 0 Then
Ellipse = Mid(i, f, t - f) & e
End If
End If
End Function

Then paste (Ctrl-v) it in the Visual Basic Editor window where you just deleted the original Sub spooky_Diet()

Save the file and close the Microsoft Visual Basic Editor.
You now have a macro, next we need to make a little button for your toolbar.

Make the Button for your Spooky Diet:
In FrontPage, on your toolbar at the right side, there should be an arrow pointing down. If you hover over it it will dispaly a tool-tip that says "more buttons".

Click the down arrow and then "Add Remove Buttons". At the bottom of the drop-down list click "Customize..."

On the Commands Tab under Categories: scroll down to "Macros"

On the right side under Commands you will see the Smiley Button.

Drag it to the tool bar then right click and select "Assign Macro"

Choose “spooky_Diet()” and click OK.
Now you have it. Try it out, itÂ’s the best one button tool I have found for FrontPage yet!

Special thanks goes out to:
Spooky for detailing the instructions in the “Spooky Diet” and being one of the cheif contributors to many FrontPage Communities, Stephen Travis for writing the macro and William Lee for bringing the macro to our attention through posts on FrontPage community forums.

Thanks guys for sharing your knowledge.

-----------------------------------------------------------------------------

Number 2 was taking off DynamicDrive.com
 
Hi, thanks for these. They don't solve my query but useful all the same. Still hoping for a solution to using screen tip on hover button.
 
Status
Not open for further replies.
Back
Top Bottom