Forum Moderators: open

Message Too Old, No Replies

How do I apply javascript to this code?

Trying to learn how to apply javascript to this code.

         

Apollyon

5:59 am on Jul 4, 2004 (gmt 0)

10+ Year Member


Hello all, I am sorry to bother you, I am an absolute novice and have been trying, in vain, to apply javascript to the code below.

As this code stands, there is an image button (using frontpage 2003) that has the name 'Case 1' on it and it opens a new window html page - perfect but, I need it to open a new window with no location bar or menu bar or anything, just a plain window which is resizable. I have gone through the forums and used the code snippets, but I just can't seem to get it right. If some one could please help me on this, thank you in advance.

Here is the code below:

<tr>
<td valign="top">
<!-- MSCellType="NavBody" -->
&nbsp;</td>

<td>&nbsp;</td>
<td valign="top" colspan="2" height="302">
<!-- MSCellType="ContentBody" -->
<a href="case_1/case_1.html" target="_blank">
<img border="0" id="img1" src="images/button19.jpg" height="20" width="100" alt="Case1"
onmouseover="FP_swapImg(1,0,/*id*/'img1',/*url*/'images/button1A.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img1',/*url*/'images/button19.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img1',/*url*/'images/button1B.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img1',/*url*/'images/button1A.jpg')"
fp-style="fp-btn: Embossed Capsule 2"
fp-title="Case 1">
</a>
<font face="Verdana" size="2">
Mr. Kevin trying to get rehousing</font></td>

</tr>

Rambo Tribble

2:32 pm on Jul 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I believe, if you modify this line:
<a href="case_1/case_1.html" target="_blank">

to be:
<a href="case_1/case_1.html" target="_blank" onclick="window.open('case_1/case_1.html','','status=no');return false;">

you will get, at least, close to what you want. Keeping the existing markup and just adding to it will accommodate browers with JavaScript turned off.

Apollyon

8:25 pm on Jul 4, 2004 (gmt 0)

10+ Year Member



Thank You very much Rambo Tribble, it worked excellent, you have been a great help.

The new page opened up just fine, I will see if i can make it resizable as it opens up maximized, but thats the fun about it!

Thanks Again!

macrost

11:50 pm on Jul 4, 2004 (gmt 0)

10+ Year Member



Apollyon,
Try this google search.
[google.com...]

Rambo Tribble

12:44 am on Jul 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you'd like it resizable, just change status=no to resizable=yes.

Apollyon

1:19 am on Jul 9, 2004 (gmt 0)

10+ Year Member



Thank you macrost, that was very helpful, I used that to great effect and used and learned a lot of how to use javascript - thanks again!