<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1025589" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1025589</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/js-php#comment-1155595</link>
    <description> &lt;p&gt;I have no final output...it doesnt come up...&lt;/p&gt;
&lt;p&gt;PHP ...i dunno&lt;/p&gt;
&lt;p&gt;separate file? ive tried both ways&lt;/p&gt;
 </description>
     <pubDate>Fri, 23 Jul 2004 04:21:42 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1155595 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/js-php#comment-1155512</link>
    <description> &lt;p&gt;The JS would be contained within the PHP, which would be parsed.&lt;/p&gt;
&lt;p&gt;As for the final output, Im not sure as I know what youre after, but the BB looked just as usual, except now images were resized to a more reasonable (proportions constrained) 200x200, which when the user scrolled over the small image, the words &quot;Double-click for Full Size&quot; would appear.  Subsequently the large image also said &quot;Double-click for Thumbnail&quot;.&lt;/p&gt;
 </description>
     <pubDate>Wed, 21 Jul 2004 22:00:08 +0000</pubDate>
 <dc:creator>jjinno</dc:creator>
 <guid isPermaLink="false">comment 1155512 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/js-php#comment-1155509</link>
    <description> &lt;p&gt;What&#039;s your final output? Is the PHP being parsed? Is the JS in its own file or in the PHP file?&lt;/p&gt;
 </description>
     <pubDate>Wed, 21 Jul 2004 20:49:41 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1155509 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/js-php#comment-1155494</link>
    <description> &lt;p&gt;I once (given I dont know your exact situation) had a similar problem, resizing images on the fly, allowing a user to click and expand a photo (the JS) and click and minimize the photo, all on a phpBB.&lt;/p&gt;
&lt;p&gt;What we ended up doing (not that this is the best way, or the easiest) was getting rid of the JS file, and writing the entire JS code into the PHP as if it were HTML.  The embedded JS was then set with a series of PHP if statements so that only the posted images were resizeable (but this fell in with the MOD for phpBB, so was relatively easy)&lt;/p&gt;
&lt;p&gt;Given my very limited knowledge of JS, I was able to google enough info as to how to do this, but also, my JS was not more than maybe 20 lines.&lt;/p&gt;
&lt;p&gt;Sorry if Im whack and this is absolutely not what you needed to hear or something.  LOL &lt;/p&gt;
&lt;p&gt;-----------------------&lt;br /&gt;
&quot;I hear and I forget. I see and I remember. I do and I understand.&quot; - Confucius&lt;/p&gt;
&lt;p&gt; &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;
 </description>
     <pubDate>Wed, 21 Jul 2004 16:32:55 +0000</pubDate>
 <dc:creator>jjinno</dc:creator>
 <guid isPermaLink="false">comment 1155494 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/js-php#comment-1155449</link>
    <description> &lt;p&gt;lol...you just made it sound like i was doing it wrong...sorry&lt;/p&gt;
&lt;p&gt;Either way, it doesnt&#039; make a difference...and I know for a fact that my server accepts the &quot;short_open_tag&quot; cuz I use it all the time.&lt;/p&gt;
&lt;p&gt;Anyways...any ideas here?&lt;/p&gt;
 </description>
     <pubDate>Tue, 20 Jul 2004 19:55:36 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1155449 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/js-php#comment-1155446</link>
    <description> &lt;p&gt;Thats right Abhishek Reddy.&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;Eskater05 wrote:&lt;/strong&gt; just so you know....&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Who told you that i dont know that?&lt;/p&gt;
 </description>
     <pubDate>Tue, 20 Jul 2004 19:06:58 +0000</pubDate>
 <dc:creator>Veter</dc:creator>
 <guid isPermaLink="false">comment 1155446 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/js-php#comment-1155442</link>
    <description> &lt;p&gt;Indeed, but &lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$scroll&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;; &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt; is more portable. Depends if PHP is configured to support short_open_tag. &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;
 </description>
     <pubDate>Tue, 20 Jul 2004 18:57:07 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1155442 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/js-php#comment-1155429</link>
    <description> &lt;p&gt;just so you know....&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$scroll&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt; is the same thing as what you said&lt;/p&gt;
 </description>
     <pubDate>Tue, 20 Jul 2004 12:28:02 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1155429 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/js-php#comment-1155420</link>
    <description> &lt;p&gt;Use echo:&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: var marqueecontent=&#039;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$scroll&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;; &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;&lt;/blockquote&gt;
 </description>
     <pubDate>Tue, 20 Jul 2004 06:07:49 +0000</pubDate>
 <dc:creator>Veter</dc:creator>
 <guid isPermaLink="false">comment 1155420 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/js-php#comment-1155385</link>
    <description> &lt;p&gt;The JS with the PHP variable in it:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;//Specify the marquee&amp;#039;s width (in pixels)&lt;br /&gt;var marqueewidth=&amp;quot;300px&amp;quot;&lt;br /&gt;//Specify the marquee&amp;#039;s height&lt;br /&gt;var marqueeheight=&amp;quot;25px&amp;quot;&lt;br /&gt;//Specify the marquee&amp;#039;s marquee speed (larger is faster 1-10)&lt;br /&gt;var marqueespeed=2&lt;br /&gt;//configure background color:&lt;br /&gt;var marqueebgcolor=&amp;quot;#DEFDD9&amp;quot;&lt;br /&gt;//Pause marquee onMousever (0=no. 1=yes)?&lt;br /&gt;var pauseit=1&lt;br /&gt;&lt;br /&gt;//Specify the marquee&amp;#039;s content (don&amp;#039;t delete &amp;lt;nobr&amp;gt; tag)&lt;br /&gt;//Keep all content on ONE line, and backslash any single quotations (ie: that\&amp;#039;s great):&lt;br /&gt;&lt;br /&gt;var marqueecontent=&amp;#039;&amp;lt;nobr&amp;gt;&amp;lt;?=$scroll?&amp;gt;&amp;lt;/nobr&amp;gt;&amp;#039;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;////NO NEED TO EDIT BELOW THIS LINE////////////&lt;br /&gt;marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) //slow speed down by 1 for NS&lt;br /&gt;var copyspeed=marqueespeed&lt;br /&gt;var pausespeed=(pauseit==0)? copyspeed: 0&lt;br /&gt;var iedom=document.all||document.getElementById&lt;br /&gt;if (iedom)&lt;br /&gt;document.write(&amp;#039;&amp;lt;span id=&amp;quot;temp&amp;quot; style=&amp;quot;visibility:hidden;position:absolute;top:-100px;left:-9000px&amp;quot;&amp;gt;&amp;#039;+marqueecontent+&amp;#039;&amp;lt;/span&amp;gt;&amp;#039;)&lt;br /&gt;var actualwidth=&amp;#039;&amp;#039;&lt;br /&gt;var cross_marquee, ns_marquee&lt;br /&gt;&lt;br /&gt;function populate(){&lt;br /&gt;if (iedom){&lt;br /&gt;cross_marquee=document.getElementById? document.getElementById(&amp;quot;iemarquee&amp;quot;) : document.all.iemarquee&lt;br /&gt;cross_marquee.style.left=parseInt(marqueewidth)+8+&amp;quot;px&amp;quot;&lt;br /&gt;cross_marquee.innerHTML=marqueecontent&lt;br /&gt;actualwidth=document.all? temp.offsetWidth : document.getElementById(&amp;quot;temp&amp;quot;).offsetWidth&lt;br /&gt;}&lt;br /&gt;else if (document.layers){&lt;br /&gt;ns_marquee=document.ns_marquee.document.ns_marquee2&lt;br /&gt;ns_marquee.left=parseInt(marqueewidth)+8&lt;br /&gt;ns_marquee.document.write(marqueecontent)&lt;br /&gt;ns_marquee.document.close()&lt;br /&gt;actualwidth=ns_marquee.document.width&lt;br /&gt;}&lt;br /&gt;lefttime=setInterval(&amp;quot;scrollmarquee()&amp;quot;,20)&lt;br /&gt;}&lt;br /&gt;window.onload=populate&lt;br /&gt;&lt;br /&gt;function scrollmarquee(){&lt;br /&gt;if (iedom){&lt;br /&gt;if (parseInt(cross_marquee.style.left)&amp;gt;(actualwidth*(-1)+8))&lt;br /&gt;cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+&amp;quot;px&amp;quot;&lt;br /&gt;else&lt;br /&gt;cross_marquee.style.left=parseInt(marqueewidth)+8+&amp;quot;px&amp;quot;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;else if (document.layers){&lt;br /&gt;if (ns_marquee.left&amp;gt;(actualwidth*(-1)+8))&lt;br /&gt;ns_marquee.left-=copyspeed&lt;br /&gt;else&lt;br /&gt;ns_marquee.left=parseInt(marqueewidth)+8&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if (iedom||document.layers){&lt;br /&gt;with (document){&lt;br /&gt;document.write(&amp;#039;&amp;lt;table border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;#039;)&lt;br /&gt;if (iedom){&lt;br /&gt;write(&amp;#039;&amp;lt;div style=&amp;quot;position:relative;width:&amp;#039;+marqueewidth+&amp;#039;;height:&amp;#039;+marqueeheight+&amp;#039;;overflow:hidden&amp;quot;&amp;gt;&amp;#039;)&lt;br /&gt;write(&amp;#039;&amp;lt;div style=&amp;quot;position:absolute;width:&amp;#039;+marqueewidth+&amp;#039;;height:&amp;#039;+marqueeheight+&amp;#039;;background-color:&amp;#039;+marqueebgcolor+&amp;#039;&amp;quot; onMouseover=&amp;quot;copyspeed=pausespeed&amp;quot; onMouseout=&amp;quot;copyspeed=marqueespeed&amp;quot;&amp;gt;&amp;#039;)&lt;br /&gt;write(&amp;#039;&amp;lt;div id=&amp;quot;iemarquee&amp;quot; style=&amp;quot;position:absolute;left:0px;top:0px&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;#039;)&lt;br /&gt;write(&amp;#039;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;#039;)&lt;br /&gt;}&lt;br /&gt;else if (document.layers){&lt;br /&gt;write(&amp;#039;&amp;lt;ilayer width=&amp;#039;+marqueewidth+&amp;#039; height=&amp;#039;+marqueeheight+&amp;#039; name=&amp;quot;ns_marquee&amp;quot; bgColor=&amp;#039;+marqueebgcolor+&amp;#039;&amp;gt;&amp;#039;)&lt;br /&gt;write(&amp;#039;&amp;lt;layer name=&amp;quot;ns_marquee2&amp;quot; left=0 top=0 onMouseover=&amp;quot;copyspeed=pausespeed&amp;quot; onMouseout=&amp;quot;copyspeed=marqueespeed&amp;quot;&amp;gt;&amp;lt;/layer&amp;gt;&amp;#039;)&lt;br /&gt;write(&amp;#039;&amp;lt;/ilayer&amp;gt;&amp;#039;)&lt;br /&gt;}&lt;br /&gt;document.write(&amp;#039;&amp;lt;/td&amp;gt;&amp;lt;/table&amp;gt;&amp;#039;)&lt;br /&gt;}&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;And the text coming from a db:&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$scroll &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;stripslashes&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$qry2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;scroll&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;I call later in the page $script which is equal to the JS with $scroll in it&lt;/p&gt;
 </description>
     <pubDate>Mon, 19 Jul 2004 13:42:27 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1155385 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
