Forum Moderators: open

Message Too Old, No Replies

Transfering JS variables (without a popup)

         

trickytrey

12:33 am on Jun 18, 2005 (gmt 0)

10+ Year Member



Here's the deal:
My first page has a link on it labeled "Learn More" to bring you to another page off of my site. The site to which you are brought will then be headed with an official banner from my site. I would like this in a framed document. In addition, I would not like this framed document to be brought up in a new window.

Please tell me if this can be done with JavaScript.

Thanks in advance,
The Tricky Trey.

JAB Creations

3:35 am on Jun 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You basically have two frames, a top and bottom one. You want to load a page in to the bottom frame with your banner on the top.


<a href="secondpage.html" target="bottomframename">link text or img</a>

I hope what I gather from your post is correct, else feel free to sticky me.

trickytrey

1:54 pm on Jun 18, 2005 (gmt 0)

10+ Year Member



That's right, except for the link on the previous page.

JAB Creations

11:50 pm on Jun 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You are tricky....what about the link on the previous page?

trickytrey

12:00 am on Jun 22, 2005 (gmt 0)

10+ Year Member



Sorry for the delay, but I'm kinda on vacation. Anyway, I figured out that the only way that I could do this is with a cookie that is deleted soon afterwards. If anyone would like to see the code for this, please post a message. Otherwise, this topic needs no more discussion.

Thanks anyway,
Tricky Trey

Sathallrin

12:46 pm on Jun 22, 2005 (gmt 0)

10+ Year Member



If I understand your origional post right, this does not need to be done with a cookie. First you would create a new page on your server with a frameset with your banner page in the top frame, and the offsite page you are linking to in the bottom frame. Such as this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<HTML>
<HEAD>
<TITLE>frameset document</TITLE>
</HEAD>
<FRAMESET rows="100, 200">
<FRAME src="banner.html">
<FRAME src="http://www.otherdomain.com/page.html">
</FRAMESET>
</HTML>

Then from your first page you can link right to your framed document.

<a href="framedpage.html" target="_top">Learn More</a>

trickytrey

9:27 pm on Jun 27, 2005 (gmt 0)

10+ Year Member



I'm sorry if I'm explaining this in the wrong way, but I was actually looking for something that I could reuse. That is, there would be multiple "Learn More" links, each leading to a different offsite page.

So yes, Sathallrin, that would work, but I don't want to go through the trouble of making each individual framed document.