Solved

Custom Hover Buttons in Frontpage98

Posted on 1998-02-08
22
350 Views
Last Modified: 2008-03-17
Annoying features in Frontpage 98 Part 58:-

Creating normal 'Hover' buttons in FP98 causes little or no problems BUT whenever I use the custom function and designate an 2 images in the dialogue box (for button and on-hover respectively) it always fails with the exception error:-

exception.com.ms.security.SecurityExceptionEx(fphover.init): cannot access file /C:/Test/test.gif

I always specify a relative pathname eg "test.gif" but the exception always quotes an absolute.

Am I doing something wrong or is it a bug?
0
Comment
Question by:bigstar
  • 11
  • 10
22 Comments
 
LVL 3

Expert Comment

by:bigelos
ID: 1842938
Could you post the HTML code?
0
 

Author Comment

by:bigstar
ID: 1842939
Hi Bigelos - I thought you might take this one up. Sure here it is:-

<html>

<head>
<title>Test Hover</title>
</head>

<body>



<p>
<applet code="fphover.class" codebase="_fpclass" width="137" height="35">
  <param name="text" value="Button Text">
  <param name="textcolor" value="#FFFFFF">
  <param name="effect" value="fill">
  <param name="url" value="Destination.html" valuetype="ref">
  <param name="image" value="Gold.gif" valuetype="ref">
  <param name="hoverimage" value="Silver.gif" valuetype="ref">
  <param name="sound" value valuetype="ref">
  <param name="hoversound" value valuetype="ref">
</applet>
</p>
</body>
</html>

Just the applet alone does not work - this is the simplest HTML example I've run and still no go.

Over to you
0
 
LVL 3

Expert Comment

by:bigelos
ID: 1842940
Well, I got it to work on my machine at home, but then when I tried uploading it to demo it to you, the uploaded demo has decided that it doesn't want to work.

Here is the URL that I'm trying to get to work:
http://kanga.unixnet.org/~bigelos/temp/fphover.html

You can check out the document source.

I have heard rumors that the fphover.class has a few versions out, and one of them is buggy.
0
 
LVL 3

Accepted Solution

by:
bigelos earned 40 total points
ID: 1842941
OK,

Here is the URL where I got it running:
http://kanga.unixnet.org/~bigelos/temp/test/fphover.html

0
 
LVL 3

Expert Comment

by:bigelos
ID: 1842942
Try downloading the fphover.class file in the http://kanga.unixnet.org/~bigelos/temp/_fpclass directory and see if this version works better.  You will have to do a <SHIFT><CLICK> on the file to download it.  Also, it wants to be downloaded in binary format.

I'll check back here again tomorrow.  It's past my bedtime...
0
 
LVL 3

Expert Comment

by:bigelos
ID: 1842943
One more comment:  Do you get the error when you use the custom button, or when you go to preview the page?
0
 

Author Comment

by:bigstar
ID: 1842944
Thanks I'll check those out and get back to you. I only get the error when I go to preview. In the FP Editor the button appears OK.
0
 
LVL 3

Expert Comment

by:bigelos
ID: 1842945
Make sure that there is a _fpclass directory in the subdirectory below the html file you are editing.  Also, try editing the file w/o frontpage running, just the editor.  (Don't want web server, etc. running.)  Try putting the image in the same directory as the file.

FrontPage will translate relative image files to absolutes if you are not careful.  It does this during the save process.  One of those annoying "features" that I wish I could turn off.  Also, FrontPage will report errors in finding files in absolutes to make it easier to troubleshoot.
0
 

Author Comment

by:bigstar
ID: 1842946
Thanks Bigelos - I downloaded your version of the Javascript routine, but it failed inexactly the same way when I ran it through FP.Obviously I sustituted my GIF's for yours. I downloaded the FPClass files from your Temp directory - they came out as CLASS files. How do I download as binary files? How am I able to use .Class files in an HTML page?

I will try your latest suggestions before I return here with a report back.

Cheers
0
 
LVL 3

Expert Comment

by:bigelos
ID: 1842947
The .class files are the actual java applet that you are calling.  The Hover command in FrontPage is a java applet--it is just cleverly disguised.  You have to make the java applet available to the HTML page, or else it won't work.  In general, microsoft has decided that a good location for this applet would be in the directory _fpclass.  This directory should be a subdirectory of the page directory.

So, if your HTML file is c:\temp\test.html, your FP class files would be in c:\temp\_fpclass.

If you used your browser to download the class files, they should come over in binary format.

Here is one more thing that you could try:  Create a html file called tmp1.html (using FrontPage).  Create a link in that file using the syntax <A HREF="http://kanga.unixnet.org/~bigelos/temp/test/fphover.html">Test Link</A>

Make sure you are connected to the internet, and view the file tmp1.html.  Click on the link.  
1.) If you get an error when the page loads up, the problem is with your copy of FrontPage and you will have to re-install it.  
2.) If you don't get an error, then there is a problem with the way your directory structure is organized on your end.
0
 

Author Comment

by:bigstar
ID: 1842948
Thanks - I'll try the _fpclass stuff - but meanwhile I tried your suggestion using the link to fphover.html in FP and it worked fine. SO what could be wrong with my Directory structure?
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 3

Expert Comment

by:bigelos
ID: 1842949
Compare your directory structure and all the files in it to http://kanga.unixnet.org/~bigelos/temp/test/

If you are missing any of the files that I have, feel free to download them.
0
 

Author Comment

by:bigstar
ID: 1842950
OK - Will do, but meanwhile, check this:-

http://www.btinternet.com/~tintrax/testarea/TestHover.htm

Here I've got my test working of sorts but appears to be changing all on its own - ie rotating!?

What's happening here?
0
 
LVL 3

Expert Comment

by:bigelos
ID: 1842951
You are using the fprotate applet instead of the fphover one.  So, it is doing what you told it to do.  Change the line
<applet code="fprotate.class" codebase="_fpclass" width="137" height="35">
to
<applet code="fphover.class" codebase="_fpclass" width="137" height="35">

And it should work.
0
 

Author Comment

by:bigstar
ID: 1842952
Yeah - what a Klutz - I've just realised!

But get this - it works on the server but not on my HD - any ideas - I know you're working hard for your 40 points here Bigelos?
0
 
LVL 3

Expert Comment

by:bigelos
ID: 1842953
Hate to tell you this, but your TestHover.htm is not working anymore since you changed from the fprotate.class.

Rather than trying to figure if/when mickeysoft screwed up on this java applet, would you consider a different one?  (Many people have had problems with fphover.)

Take a look at
http://kanga.unixnet.org/~bigelos/temp/frame.htm
and at
http://www.geocities.com/~litterbug/domain/mainlinks.htm

and see if they are an option you can live with.

What version of FP98 are you using?  I've still got the beta 2 version going...
0
 

Author Comment

by:bigstar
ID: 1842954
Yeah - I know - can't get it to work on my HD or on the server - boo. Yeah I'd consider using anything but that crappy thing in FP!

So.... I'll have a gander at your URL refs and get back to you.

I'm using FP98 Final release 3.0.2.926. I still have Beta 3 - but supposed (stupidly)that the final would be the best one - hah - a pie in the face for Mr Gates then?
0
 

Expert Comment

by:Badger
ID: 1842955
Bigstar told me to tell you that he can't seem to get renewed pages on Experts Exchange. He knows you've posted a new reply - but each time he goes back into the page - it must load from a cache. He will try again later today
0
 

Author Comment

by:bigstar
ID: 1842956
bigelos - can you mail me at mr.qwerty@bigfoot.com - I can't seem to load the most recent page - so despite trying I've not seen your latest response.

Cheers
0
 
LVL 3

Expert Comment

by:bigelos
ID: 1842957
Comment added to keep this question open
0
 

Author Comment

by:bigstar
ID: 1842958
Comment added by me too for the same reason!
0
 

Author Comment

by:bigstar
ID: 1842959
bigelos - thanks for your help - this now works, as you know from our personal Email - it's a weird permissions thing!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Alert not firing 2 32
Summernote required 3 56
HTML 5 video and audio or Flash 1 29
Bootstrap 3 application structure 7 11
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now