Click to See Complete Forum and Search --> : frame help


fr0nt
03-19-2003, 11:35 AM
-->begin
Hi,

am having trouble linking to another page that is on another frame in the same window. I am now using:
<input type=button value="Go right!" OnClick="parent.frameNavig()">

the function is:
<SCRIPT LANGUAGE="JavaScript">
function frameNavig() {
frames['right'].window.location="main-nav.html";
}
</SCRIPT>

all this already work but i dont how to make it work with a simple picture.
Also I want to be able to link to another page without having to call more functions.. is it possible to just call 1 function and make my tell-a-friend.html and my other pages to load automatically when i click on the picture link to my right frame?
-->end


This is a litle script that maybe will help you if you use frames in yur web site. If browser do not support frames, load main page into entire window...cool!.

//<-- place this before the <HTML> tag at the top of the page

<%
If Not(objBCap.frames) Then Response.Redirect "main_" & strBrowser & "you_main_page.html"
%>

DoLordBoy
03-19-2003, 12:42 PM
Make it work with a simple picture? Keep the function, but make an image saying:

<img src='image.gif' onClick=frameNavig()>


But wouldn't it just work without the functions and just <a href='main-nav.html' target='right'><img src=image.gif></a>

Maybe I dont understand right.

DoLordBoy
03-19-2003, 12:52 PM
and if you wanted to go to another page with the same image:

<a href="tell-a-friend.html" target=_self><img src='image.gif' onClick=frameNavig()></a>

fr0nt
03-20-2003, 01:18 PM
yes thx it work..
--
i there a way to send email without having to go through the server instead just specify another smtp server, the mail address of the sender (the form) ??