Forum Moderators: open

Message Too Old, No Replies

1 page 2 frame page on exit

frame on page leave

         

ianternet

1:03 am on Oct 7, 2006 (gmt 0)

10+ Year Member



I am looking for a script or a piece of code when someone clicks on a particular link esp a target frame : _blank it will open a new window but with 2 frames where the top frame is my page or banner with links and the bottom frame will be the actual page they have visited.

something similar trafficswarm if anyone has used it

also - I use rss feed on my site as well and I can not control their link frame so I would like that to be incorporated as well if not that is fine

any input or other ideas? I would like to see this happen so I can have targeted traffic to my site and not the user always leaving my site

thanks

tedster

2:20 am on Oct 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I feel like I must not be understanding something about your situation. Is there a reason that the link that opens in a new window can't point to a regular frameset? It seems like that's all you would need.

ianternet

9:56 pm on Oct 7, 2006 (gmt 0)

10+ Year Member



I mean I can have it point to a frame paeg but I would have to do it for almost all links that are active

I want a script (if there is one) if a href is leaving my page lets say someones elses webpage that it splits that it goes to a frame set page where the top frame is my banner and the bottom frame would be that users new website...I dont want to create a frameset page for all my links that I have and some links are in PHP where it automates and sometimes it leads to someones page - I want a user to still be part of my webpage but still be able to go to that other users webpage

I am not sure how to explain it really I hope that helped

simple explanation:

1. someone leaves my webpage
2. goes to a frame: top frame is my banner, bottom frame is the other user webpage
3. but I do not want to create a frame set page for each link as some links are generated via RSS PHP etc

tedster

3:55 am on Oct 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, you can't do it with HTML alone -- some kind of scripting must come into play. Server-side cgi would be best, but javscript could do it, too.

You should work out the details on your own, in your language of choice. You can ask for help in the relevant forum here if you hit a snag. Essentially, you will need to pass the url for the external site as a varible for the script to use - and then have the script write out the full frameset.

As I said, it is definitely outside the scope of the HTML and Browsers Forum to work out the scripting details, and server-side scripting would be a lot better than client-side javascript, which will not be available in every case.