PDA

View Full Version : Targeting frame"2" with javascript hover buttons? :S


mattyb
03-09-2003, 11:07 PM
First I would like to start off by saying sorry! Sorry I know nothing about Javascript! I inserted these buttons on to my Venture Companies website when I built it last year using Frontpage now I need to update this site using frames and the Javascript is not allowing me too target frame "2"and I no longer have Frontpage. I did do a search but didn't find anything helpfull to my problem.
Here is the code for one button(as origanally impleminted):
<applet code="fphover.class" codebase="./" width="120" height="24">
<param name="color" value="#3399FF">
<param name="bgcolor" value=" #FFFFFF ">
<param name="textcolor" value="#FFFF00">
<param name="font" value="Helvetica">
<param name="fontstyle" value="bold">
<param name="fontsize" value="14">
<param name="text" value="Equipment">
<param name="url" valuetype="ref" value="equ.html">
<param name="hovercolor" value="#FF0033">
<param name="effect" value="bevelOut">
</applet>
I have tried the following(changes in red ):

<applet code="fphover.class" codebase="./" width="120" height="24">
<param name="color" value="#3399FF">
<param name="bgcolor" value=" #FFFFFF ">
<param name="textcolor" value="#FFFF00">
<param name="font" value="Helvetica">
<param name="fontstyle" value="bold">
<param name="fontsize" value="14">
<param name="text" value="Equipment">
<param name="url" valuetype="ref" value="equ.html" Target="2" >
<param name="hovercolor" value="#FF0033">
<param name="effect" value="bevelOut">
</applet>
Then I tried:
<applet code="fphover.class" codebase="./" width="120" height="24">
<param name="color" value="#3399FF">
<param name="bgcolor" value=" #FFFFFF ">
<param name="textcolor" value="#FFFF00">
<param name="font" value="Helvetica">
<param name="fontstyle" value="bold">
<param name="fontsize" value="14">
<param name="text" value="Equipment">
<onClick="parent.2.location='main.html'">
<param name="hovercolor" value="#FF0033">
<param name="effect" value="bevelOut">
</applet>
Neither of these worked. Any suggestions? If you want to view the site go to: http://www.booyah.tk . Sorry about the pop-ups I will be changing servers soon to get rid of these!
Thank you,
The Bee

FJbrian
03-10-2003, 07:18 AM
what's your hover.class and bevelout function look like?

mattyb
03-10-2003, 01:47 PM
Sorry I don't know how to veiw them I will atach here for you to look at. I tried using notepad and it came out as gibberish, and ready won't open classes. So here are the files.

Thank you,
The Bee

mattyb
03-10-2003, 01:49 PM
I'm not sure what you mean by the bevelout feature. I'm new to jscript try to bear with me.

Thank you,
The Bee

RoyW
03-10-2003, 02:47 PM
fphover.class is Java not JavaScript and is part of the FrontPage package ("fp" hover.)

1) Do not name frames with numbers, use names.
<FRAME NORESIZE="YES" NAME="2" SRC="main.html">
use this instead
<FRAME NORESIZE="YES" NAME="mainFrame" SRC="main.html">

Change your Java Applet params to this :-

<applet code="fphover.class" codebase="./" width="120" height="24">
<param name="color" value="#3399FF">
<param name="bgcolor" value=" #FFFFFF ">
<param name="textcolor" value="#FFFF00">
<param name="font" value="Helvetica">
<param name="fontstyle" value="bold">
<param name="fontsize" value="14">
<param name="text" value="Equipment">
<param name="url" valuetype="ref" value="equ.html">
<param name="target" value="mainFrame">
<param name="hovercolor" value="#FF0033">
<param name="effect" value="bevelOut">

mattyb
03-10-2003, 04:49 PM
I tried that it does the exact same thing as the rest of the things I've tried...... Absolutely nothing
:S This is really confusing anyone else have any thoughts?

RoyW
03-10-2003, 06:07 PM
<param name="target" value"main">

should be

<param name="target" value="main">

mattyb
03-12-2003, 02:38 AM
That didn't work either :S. Now when you click the link absolutley nothing heppens. What am I doing wrong?

Thank you,
Matty B

RoyW
03-12-2003, 02:38 PM
I just checked out the link you posted above ( http://www.booyah.tk/ ) and it worked for me.

mattyb
03-14-2003, 02:35 PM
Ok, It works now for my friends, but still not for me. One of my computers that won't run
it is using IE. 5. Can someone else with IE. 5. try it and tell me what happens please. Also
anyone running Opera or Netscape if you could test it I would be most appreciative.

Thank you,
The Bee

STWD
03-14-2003, 10:10 PM
Hi mattyb,

I just visited your site using my server which still has IE5 and all your buttons seemed to work just fine.

I hope you or some of the brainstrusts that use this BBS can get to the bottom of it. Your problem has got me intrigued.:)

mattyb
03-15-2003, 04:54 PM
:o Oh really, well thanks for your help but is is probablly just my computers.

Thank you,
The Bee