<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1017720" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1017720</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/question-about-frames#comment-1103924</link>
    <description> &lt;p&gt;Hi Jack,&lt;/p&gt;
&lt;p&gt;Thanks for checking back about this question I raised - hope the &quot;real world&quot; was good to you!&lt;/p&gt;
&lt;p&gt;Thanks too for working out this script. I admire your ability to write javascript. If I understand your script correctly, it will launch a popup *out of* the bottom page of a frame. What we want to do is to load an external url address (from the popup) *into* the bottom part of a pre-existing frame page. &lt;/p&gt;
&lt;p&gt;To show you what I mean, I&#039;ve placed a page online. This page has a link that leads to the popup, which has the banner ad. On that popup is a link to the type of frame page interface that we&#039;d like to use.&lt;/p&gt;
&lt;p&gt;You can see this first page at:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.electroniccottage.com/test/test_index.html&quot; class=&quot;bb-url&quot;&gt;http://www.electroniccottage.com/test/test_index.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;My original hope was that there was a reasonably simple way to direct the external page into the bottom of the frame, using html if possible, and failing that, then a javascript. It seems that js is going to be the approach, if this is do-able at all.&lt;/p&gt;
&lt;p&gt;I very much appreciate you looking at this. There is no gigantic hurry, so only devote as much time as you feel is reasonable. If we can work this out, then possibly the script would be useful to other people who would like randomly loaded banners on their sites to open in one of their own frame pages. It seems like it would be a way to utilize banners without losing visitors.&lt;/p&gt;
&lt;p&gt;If you&#039;d ever like to email me directly, you can do so at the mailto that I have on the test_index.html page referenced above....&lt;/p&gt;
&lt;p&gt;Best wishes,&lt;/p&gt;
&lt;p&gt;Steve Reynolds&lt;/p&gt;
 </description>
     <pubDate>Tue, 05 Mar 2002 17:20:50 +0000</pubDate>
 <dc:creator>SW Reynolds</dc:creator>
 <guid isPermaLink="false">comment 1103924 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/question-about-frames#comment-1103839</link>
    <description> &lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Took a while but I think this is what you want.&lt;br /&gt;
Loose the old script and place this in the head section of your bottompage:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;amp;lt;script language=&amp;quot;javascript&amp;quot;&amp;amp;gt;&lt;br /&gt;function openup(url)&lt;br /&gt;{&lt;br /&gt;var locationStr1=&amp;quot;http://www.remotetestpage1.com&amp;quot;&lt;br /&gt;var locationStr2=&amp;quot;http://www.remotetestpage2.com&amp;quot;&lt;br /&gt;var locationStr3=&amp;quot;http://www.remotetestpage3.com&amp;quot;&lt;br /&gt;//add more if you like&lt;br /&gt;&lt;br /&gt;img=new Array()&lt;br /&gt;img[1]=&amp;quot;&amp;lt;a href=javascript:opener.location.replace(&amp;#039;&amp;quot;+locationStr1+&amp;quot;&amp;#039;)&amp;gt;&amp;lt;img src=&amp;#039;banner1.gif&amp;#039; border=&amp;#039;0&amp;#039;&amp;gt;&amp;lt;/a&amp;gt;&amp;quot;;&lt;br /&gt;img[2]=&amp;quot;&amp;lt;a href=javascript:opener.location.replace(&amp;#039;&amp;quot;+locationStr2+&amp;quot;&amp;#039;)&amp;gt;&amp;lt;img src=&amp;#039;banner2.gif&amp;#039; border=&amp;#039;0&amp;#039;&amp;gt;&amp;lt;/a&amp;gt;&amp;quot;;&lt;br /&gt;img[3]=&amp;quot;&amp;lt;a href=javascript:opener.location.replace(&amp;#039;&amp;quot;+locationStr3+&amp;quot;&amp;#039;)&amp;gt;&amp;lt;img src=&amp;#039;banner3.gif&amp;#039; border=&amp;#039;0&amp;#039;&amp;gt;&amp;lt;/a&amp;gt;&amp;quot;;&lt;br /&gt;//add more if you like&lt;br /&gt;&lt;br /&gt;//Opening the popup&lt;br /&gt;var bannerImage=img[randomize(img.length-1)];	&lt;br /&gt;win= open(url,&amp;#039;popup&amp;#039;,&amp;#039;width=800,height=100,status=yes,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no,directories=no&amp;#039;);&lt;br /&gt;win.document.open();&lt;br /&gt;win.document.write(bannerImage);&lt;br /&gt;win.document.close();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//random banner&lt;br /&gt;function randomize(number)&lt;br /&gt;	{&lt;br /&gt;	return (Math.floor(Math.random()*number)+1);&lt;br /&gt;	}&lt;br /&gt;&amp;amp;lt;/script&amp;amp;gt;	&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;and place this in the bodysection of your bottompage:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;a href=&amp;quot;javascript: openup(&amp;#039;popup.html&amp;#039;);&amp;quot;&amp;gt;click here to open popup&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Make a file called &#039;popup.html&#039; and leave it empty. This is the placeholder where the banner will appear.&lt;/p&gt;
&lt;p&gt;Hope this is it &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 04 Mar 2002 18:36:46 +0000</pubDate>
 <dc:creator>Jack Michaelson</dc:creator>
 <guid isPermaLink="false">comment 1103839 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/question-about-frames#comment-1103801</link>
    <description> &lt;p&gt;Sorry for the wait, but I was given the change to make a few steps in the &#039;real world&#039; last weekend &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; &lt;/p&gt;
&lt;p&gt;Anyway:&lt;br /&gt;
I runned your script and, because the function calls itself, it ends up in a memory overflow --&amp;gt; IE5 crash. I didn&#039;t have time to figure the rest out, but I will tonight. I&#039;ll post it then.&lt;/p&gt;
 </description>
     <pubDate>Mon, 04 Mar 2002 10:03:25 +0000</pubDate>
 <dc:creator>Jack Michaelson</dc:creator>
 <guid isPermaLink="false">comment 1103801 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/question-about-frames#comment-1103650</link>
    <description> &lt;p&gt;Hello Jack,&lt;/p&gt;
&lt;p&gt;It was very kind of you to send your suggestion - thank you. I was hoping for a non-js answer to this, as the situation I am attempting to figure out already has the &lt;a href&gt; in a jscript.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I was trying to keep my original post as short as possible, but if the solution will involve js, then I need to be more detailed.&lt;/p&gt;
&lt;p&gt;Everything I said in the first post was accurate, but the reality is more complicated. What I have at the top of the small popup is a js that randomly presents a banner. That banner is of course hyperlinked to an external site. There are 3 url&#039;s in the random list.&lt;/p&gt;
&lt;p&gt;As the first banner is presented at the top of the small popup, I&#039;d like to have the site it references load in the bottom of the frame page if that banner was clicked. If the viewer ignores the first banner but clicks the second, then that second page would load in the bottom of the frame page. I do not know how to write js, so am at a loss how to incorporate your suggestion into an existing script.&lt;/p&gt;
&lt;p&gt;Here are the details: the frame page sits in a folder called &quot;framepage&quot;. In that folder are 3 files: framepageindex.html (parent); frametop.html and framebottom.html. &lt;/p&gt;
&lt;p&gt;I want the externally located banner page address to open up in the framebottom.html part of the parent (framepageindex.html).&lt;/p&gt;
&lt;p&gt;For your info, here is the current random load banner script... this is placed in the body, where the banner loads (this is the entire script - nothing is placed in the head).&lt;/p&gt;
&lt;p&gt;Note that I have consistently substituted [ + ] for &amp;lt; + &amp;gt;:&lt;/p&gt;
&lt;p&gt;========================================&lt;br /&gt;
[SCRIPT LANGUAGE=&quot;Javascript&quot;&amp;gt;&lt;br /&gt;
[!--&lt;br /&gt;
// ********************************&lt;br /&gt;
// AUTHOR: &lt;a href=&quot;http://www.CGISCRIPT.NET,&quot; class=&quot;bb-url&quot;&gt;CGISCRIPT.NET,&lt;/a&gt; LLC&lt;br /&gt;
// URL: &lt;a href=&quot;http://www.cgiscript.net&quot; class=&quot;bb-url&quot;&gt;http://www.cgiscript.net&lt;/a&gt;&lt;br /&gt;
// Use the script, just leave this message intact.&lt;br /&gt;
// Download your FREE CGI/Perl Scripts today!&lt;br /&gt;
// ( &lt;a href=&quot;http://www.cgiscript.net/scripts.htm&quot; class=&quot;bb-url&quot;&gt;http://www.cgiscript.net/scripts.htm&lt;/a&gt; )&lt;br /&gt;
// ***********************************************&lt;/p&gt;
&lt;p&gt;function banner() {&lt;br /&gt;
};&lt;/p&gt;
&lt;p&gt;banner = new banner();&lt;br /&gt;
number = 0;&lt;/p&gt;
&lt;p&gt;// bannerArray&lt;br /&gt;
banner[number++] = &quot;&lt;a /&gt;&lt;img /&gt;&lt;/a&gt;&quot;&lt;br /&gt;
banner[number++] = &quot;&lt;a /&gt;&lt;img /&gt;&lt;/a&gt;&quot;&lt;br /&gt;
banner[number++] = &quot;&lt;a /&gt;&lt;img /&gt;&lt;/a&gt;&quot;&lt;br /&gt;
// keep adding items here...&lt;/p&gt;
&lt;p&gt;increment = Math.floor(Math.random() * number);&lt;/p&gt;
&lt;p&gt;document.write(banner[increment]);&lt;/p&gt;
&lt;p&gt;//--&amp;gt;&amp;lt;/script]&lt;br /&gt;
========================================&lt;/p&gt;
&lt;p&gt;So if I place your script in the head:&lt;/p&gt;
&lt;p&gt;========================================&lt;br /&gt;
[script language=&quot;javascript&quot;&amp;gt;&lt;br /&gt;
function changebottom()&lt;br /&gt;
{&lt;br /&gt;
opener.location.replace(&#039;framepage/framebottom.html&#039;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/script]&lt;br /&gt;
========================================&lt;/p&gt;
&lt;p&gt;How then do I incorporate the second part of your suggestion&lt;/p&gt;
&lt;p&gt;========================================&lt;br /&gt;
[a href=&quot;javascript: changebottom();&quot;]&lt;br /&gt;
========================================&lt;/p&gt;
&lt;p&gt;into this part of the original rotating banner script?:&lt;/p&gt;
&lt;p&gt;========================================&lt;br /&gt;
banner[number++] = &quot;&lt;a img&gt;&lt;/a&gt;&quot;&lt;br /&gt;
========================================&lt;/p&gt;
&lt;p&gt;Would it look something like this??&lt;/p&gt;
&lt;p&gt;========================================&lt;br /&gt;
[a javascript: &#039;changebottom();&#039; href=&#039;http://www.remotetestpage1.com/&#039;]&lt;br /&gt;
========================================&lt;/p&gt;
&lt;p&gt;I warned you that it was complicated!&lt;/p&gt;
&lt;p&gt;Thanks for your insight....&lt;/p&gt;
&lt;p&gt;Reno&lt;/p&gt;
 </description>
     <pubDate>Fri, 01 Mar 2002 23:54:31 +0000</pubDate>
 <dc:creator>SW Reynolds</dc:creator>
 <guid isPermaLink="false">comment 1103650 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/question-about-frames#comment-1103635</link>
    <description> &lt;p&gt;that&#039;s not a bug, that&#039;s a feature. ha ha.&lt;/p&gt;
&lt;p&gt;actually, the &quot;javascript&quot; = &quot;java script&quot; is to prevent hacking, I believe.&lt;/p&gt;
 </description>
     <pubDate>Fri, 01 Mar 2002 22:06:06 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1103635 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/question-about-frames#comment-1103619</link>
    <description> &lt;p&gt;This is the code that has to be placed in the popup window:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;	&amp;lt;title&amp;gt;Untitled&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;amp;lt;script language=&amp;quot;javascript&amp;quot;&amp;amp;gt;&lt;br /&gt;function changebottom()&lt;br /&gt;{&lt;br /&gt;opener.location.replace(&amp;#039;bottom2.html&amp;#039;);&lt;br /&gt;}&lt;br /&gt;&amp;amp;lt;/script&amp;amp;gt;&lt;br /&gt;	&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;body bgcolor=&amp;quot;silver&amp;quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;a href=&amp;quot;javascript: changebottom();&amp;quot;&amp;gt;click here to change bottom&amp;lt;/a&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
where &#039;java script&#039; has to be entered like &#039;javascript&#039;. Those little forum-bugs! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Anyway: is that it?&lt;/p&gt;
 </description>
     <pubDate>Fri, 01 Mar 2002 20:03:47 +0000</pubDate>
 <dc:creator>Jack Michaelson</dc:creator>
 <guid isPermaLink="false">comment 1103619 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/question-about-frames#comment-1103616</link>
    <description> &lt;p&gt;&lt;code&gt;&amp;lt;a href=&amp;quot;http://www.remotepage.com/index.html&amp;quot; target=&amp;quot;bottom&amp;quot;&amp;gt;Remote page&amp;lt;/a&amp;gt; &lt;/code&gt;&#039;&lt;/p&gt;
&lt;p&gt;...should do it.&lt;/p&gt;
&lt;p&gt;[edit] no, wait. that shouldn&#039;t do it. Figuring it out right now &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; I&#039;ll post it when I have it [/edit]&lt;/p&gt;
 </description>
     <pubDate>Fri, 01 Mar 2002 19:44:14 +0000</pubDate>
 <dc:creator>Jack Michaelson</dc:creator>
 <guid isPermaLink="false">comment 1103616 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
