Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Very simple HTML/JS image slider sticks on one image?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Magic" data-source="post: 217000" data-attributes="member: 23359"><p>So yea it just sits on one image, Excuse my noobishness but i'm a learner and am confused.</p><p> </p><p>[HTML]<script type="text/javascript"></p><p> <!--></p><p> var image1=new image()</p><p> image1.src="ghostfacer.jpg"</p><p> var image2=new image()</p><p> image2.src="fokus.jpg"</p><p> var image3=new image()</p><p> image3.src="da.jpg"</p><p> //--></p><p> </script></p><p> <img src= "images/ghostfacer.jpg" name="slide" width="400" height="400"></p><p> <script type="text/javascript"></p><p> <!--</p><p> var step=1</p><p> function slideit(){</p><p> document.images.slide.src=eval("image"+step+".src")</p><p> if(step<3)</p><p> step++</p><p> else</p><p> step=1</p><p> setTimeout("slideit()",2500)</p><p> }</p><p> slideit()</p><p> //--></p><p> </script>[/HTML][DOUBLEPOST=1374705620,1374659288][/DOUBLEPOST]Close thread - I moved onto a Jquery Slider <img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="Magic, post: 217000, member: 23359"] So yea it just sits on one image, Excuse my noobishness but i'm a learner and am confused. [HTML]<script type="text/javascript"> <!--> var image1=new image() image1.src="ghostfacer.jpg" var image2=new image() image2.src="fokus.jpg" var image3=new image() image3.src="da.jpg" //--> </script> <img src= "images/ghostfacer.jpg" name="slide" width="400" height="400"> <script type="text/javascript"> <!-- var step=1 function slideit(){ document.images.slide.src=eval("image"+step+".src") if(step<3) step++ else step=1 setTimeout("slideit()",2500) } slideit() //--> </script>[/HTML][DOUBLEPOST=1374705620,1374659288][/DOUBLEPOST]Close thread - I moved onto a Jquery Slider :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Very simple HTML/JS image slider sticks on one image?
Top