<?xml version="1.0"?>
<rss version="2.0">
 <channel>
  <title>HELP : Randomly Selected Image Reload - javascript | WPDFD.com Forums</title>
  <link>http://www.wpdfd.com/forums/wpdfd/markup/help__randomly_selected_image_reload__javascript/</link>
  <description>A Markup forum thread at WPDFD.com</description>
  <language>en-us</language>
  <pubDate>05/13/05, 133 06 2005 2005:%i:1115971605 04:06:45</pubDate>
  <lastBuildDate>06/07/13, 158 52 2013 2013:%i:1370587972 02:52:52</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>NineLabs Framework Feed Generator</generator>
  <managingEditor>sitemaster@wpdfd.com</managingEditor>
  <webMaster>sitemaster@wpdfd.com</webMaster>
     <item>
    <title>Prae  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/markup/help__randomly_selected_image_reload__javascript/#p1935</link>
    <description><![CDATA[my regards to all here in these forums .<br /><br />.<br /><br />i found my way here via this post . http://www.wpdfd.com/cgi-bin/yabb/YaBB.pl?board=js;action=display;num=1098932854<br /><br />.<br /><br />it seemed to answer my question as to how i would create a page<br /><br />with a single . dynamically reloading image . but i've created<br /><br />another problem .<br /><br /><br />i had gone about trying to work this out in JAVASCRIPT . <br /><br />i followed this tutorial =<br /><br />http://www.picturebridge.com/random-image/]http://www.picturebridge.com/random-image<br /><br />. . . . . . . .<br /><br />i used the .ZIP folder at the bottom to reconstruct the sample . i've gotten it to work but once i tried to modify it<br /><br />it all broke down .<br /><br />WHAT I'M TRYING TO DO .<br /><br />is have a dynamically loading IMAGE . WHICH IS ITSELF A &quot;LINK&quot; for a pop up window . also done in java .<br /><br />. . . . . .<br /><br />would that doubling up of java somehow conflict or cancel out the affect ? ? ? ?<br /><br />. . . . . . <br /><br />this is a link to the test page for this PROBLEM = http://commonalms.com/TEST.htm]http://commonalms.com/TEST.htm<br /><br />. . . . . . .<br /><br />and the following is the fairly simple code . i centered the image using a WRAPPER div in the CSS . <br /><br />. . . . . . . . . . . . . . . . . . . . . . . . . . .<br /><br />&lt;head&gt;<br />&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;&gt; <br />&lt;title&gt;Reload to display randomly selected image&lt;/title&gt; <br /><br />&lt;link href=&quot;layout.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;<br /><br />&lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot;&gt; <br /> &lt;!-- <br /> function swapPic() <br />  { <br />  if(document.getElementById) <br />    { <br />    var thePicture=document.getElementById(&quot;RandomImage&quot<img src="/images/emoticons/wink.png" class="smiley" />; <br />    var picPath=&quot;001/photo&quot;+rnd(3)+&quot;.png&quot;; <br />    thePicture.style.background=&quot;url(&quot;+picPath+&quot<img src="/images/emoticons/wink.png" class="smiley" />&quot;; <br />    } <br />  } <br /> function rnd(n) <br />  { <br />  return Math.floor(Math.random() * n) + 1; <br />  } <br /> //--&gt; <br /> &lt;/script&gt; <br />&lt;style type=&quot;text/css&quot;&gt;<br />&lt;!--<br />body {<br /> &nbsp; &nbsp; &nbsp;background-image: url(001/blackwhitelineseventeen.gif);<br />}<br />--&gt;<br />&lt;/style&gt;&lt;/head&gt; <br /> <br />&lt;body onload=&quot;swapPic()&quot;&gt; <br /><br /><br />&lt;div id=&quot;wrapper&quot;&gt;<br /><br /><br />&lt;div id=&quot;RandomImage&quot;&gt;&lt;/div&gt; <br /><br />&lt;/body&gt; <br />&lt;/div&gt;<br /><br />____________________<br />____________________<br /><br />as you can see i am able to get the image to reload . but i can't seem<br /><br />to use it as a LINK or BUTTON for a pop up window . ( which i need to<br /><br />do in order to open up my .SWF file )<br /><br />IF ANYONE COULD LEND SOME FURTHER advice . i'd greatly appreciate it . thanks . again .<br /><br /><br />LEX]]></description>
    <pubDate>05/13/05, 133 06 2005 2005:%i:1115971605 04:06:45</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/markup/help__randomly_selected_image_reload__javascript/#p1935</guid>
   </item>
     <item>
    <title>Joe Gillespie said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/markup/help__randomly_selected_image_reload__javascript/#p1936</link>
    <description><![CDATA[The script you are using is only changing the image. You need to change the image and the attached link. If you use my script (that you alluded to), it will change the image and the link.]]></description>
    <pubDate>05/13/05, 133 06 2005 2005:%i:1116007612 14:06:52</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/markup/help__randomly_selected_image_reload__javascript/#p1936</guid>
   </item>
     <item>
    <title>Superaverage  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/markup/help__randomly_selected_image_reload__javascript/#p1937</link>
    <description><![CDATA[I'm looking for similar js code, that will swap a regular image (not background) randomly on browser refresh. I first tried to modify your code, but couldn't make it work. I've been at this for awhile, so many many thanks in advance if you can help...<br />-scott]]></description>
    <pubDate>06/02/05, 153 29 2005 2005:%i:1117740587 15:29:47</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/markup/help__randomly_selected_image_reload__javascript/#p1937</guid>
   </item>
   </channel>
</rss