<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1012331" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1012331</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-javascript#comment-1071123</link>
    <description> &lt;p&gt;and I&#039;m a bit corn-fuzzed about a javascript link pointing to a php.  never seen that before.  I wouldn&#039;t think that&#039;a work.&lt;/p&gt;
&lt;p&gt;what is the format of the page calling the javascript? is it PHP too?  or just .html?&lt;/p&gt;
&lt;p&gt;I&#039;m going to assume that the page calling it is PHP...&lt;/p&gt;
&lt;p&gt;Where ever you currently have the &amp;lt;script&amp;gt; tag, cut it out. and paste this:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;?&lt;br /&gt;if (!isset($Visited) || $Visited != &amp;quot;yes&amp;quot;) {&lt;br /&gt;?&amp;gt;&lt;br /&gt;&amp;amp;lt;script LANGUAGE=&amp;quot;JavaScript&amp;quot; src=&amp;quot;http://www.popuptraffic.com/assign.php?l=ascifi&amp;quot;&amp;amp;gt;&amp;amp;lt;/script&amp;amp;gt; &lt;br /&gt;&amp;lt;?&lt;br /&gt;}&lt;br /&gt;setcookie(Visited, &amp;quot;yes&amp;quot;, time()+(60*60*24*365));&lt;br /&gt;?&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;this will print your &amp;lt;script&amp;gt; tag only if the cookie is not set, or the cookie&#039;s value is not &quot;yes&quot;.  [This means that later, you could change the keyword to get everyone to see one more time.  To do this you would just change both &quot;yes&quot; to &quot;whatever&quot;]&lt;/p&gt;
&lt;p&gt;Hope that helps.&lt;/p&gt;
 </description>
     <pubDate>Thu, 14 Sep 2000 05:44:18 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1071123 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-javascript#comment-1071040</link>
    <description> &lt;p&gt;This is how the javascript was called:&lt;/p&gt;
&lt;p&gt;&amp;lt;script LANGUAGE=&quot;JavaScript&quot; src=&quot;http://www.popuptraffic.com/assign.php?l=ascifi&quot;&amp;gt;&amp;lt;/script&amp;gt; &lt;/p&gt;
&lt;p&gt;looking at it again, it is not reall javascript i guess. bit weird really.&lt;/p&gt;
&lt;p&gt;Anyway, the page it is going to go on is php so that is ok.&lt;/p&gt;
&lt;p&gt;so how would i convert that into &quot;javascript link can go here&quot; ?&lt;/p&gt;
 </description>
     <pubDate>Wed, 13 Sep 2000 10:26:36 +0000</pubDate>
 <dc:creator>ascifi</dc:creator>
 <guid isPermaLink="false">comment 1071040 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-javascript#comment-1071029</link>
    <description> &lt;p&gt;Hello, and welcome!&lt;/p&gt;
&lt;p&gt;how does you external javascript look?  is it encassed in a function?  if so you could use the javascript cookie, and execute the functin if no cookie exists.  That is about as much of that javascript stuff as I know.&lt;/p&gt;
&lt;p&gt;PHP-   I love PHP&lt;br /&gt;
There is an easy cookie thingy!&lt;/p&gt;
&lt;p&gt;syntax:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;setcookie(&amp;quot;CookieName&amp;quot;, &amp;quot;CookieValue&amp;quot;, &amp;quot;TimeUntillExpire&amp;quot;);&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Example:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;if (isset($Visited) &amp;amp;&amp;amp; $Visited == &amp;quot;yes&amp;quot;) {&lt;br /&gt;//do nothing&lt;br /&gt;}&lt;br /&gt;else{&lt;br /&gt;print (&amp;quot;&lt;br /&gt;//your javascript link can go here&lt;br /&gt;&amp;#039;);&lt;br /&gt;}&lt;br /&gt;setcookie(Visited, &amp;quot;yes&amp;quot;, time()+(60*60*24*365));&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;If the cookie exists AND it&#039;s value is &quot;yes&quot; THEN do nothing.&lt;br /&gt;
If the cookie DOES NOT exist OR it&#039;s value is something other that &quot;yes&quot; THEN print the javascript.&lt;/p&gt;
&lt;p&gt;This cookie will expire one year after the users last visit (because it re-sets the expiration time evey visit).&lt;/p&gt;
&lt;p&gt;good luck,&lt;/p&gt;
 </description>
     <pubDate>Wed, 13 Sep 2000 05:52:38 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1071029 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
