DeathStar Posted December 9, 2006 Share Posted December 9, 2006 Maybe this should be in javascript... :-\I have alot af pictures..(logos)I want 1 to display every x seconds..or change everytime the page loads..Ive seen it been done before..hope someone out there knows.. ??? Quote Link to comment Share on other sites More sharing options...
AndyB Posted December 9, 2006 Share Posted December 9, 2006 [quote author=DeathStar link=topic=117999.msg481829#msg481829 date=1165696319]Maybe this should be in javascript... :-\I have alot af pictures..(logos)I want 1 to display every x seconds..or change everytime the page loads..[/quote]Which do you want? First is simplest with javascript, second is trivial with javascript or php Quote Link to comment Share on other sites More sharing options...
DeathStar Posted December 10, 2006 Author Share Posted December 10, 2006 Like almost like a slideshow (not exactly)every 5 second the it displays another picture.. Quote Link to comment Share on other sites More sharing options...
AndyB Posted December 10, 2006 Share Posted December 10, 2006 http://www.google.ca/search?hl=en&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=javascript+slideshow&spell=1 Quote Link to comment Share on other sites More sharing options...
DeathStar Posted December 16, 2006 Author Share Posted December 16, 2006 any other way..or when page loads change? Quote Link to comment Share on other sites More sharing options...
AndyB Posted December 16, 2006 Share Posted December 16, 2006 [quote]Results 1 - 10 of about 3,420,000 ...[/quote]... and none of those did what you wanted?Maybe you need to specify precisely the one thing you need, rather than a fairly vague and generic request. Quote Link to comment Share on other sites More sharing options...
DeathStar Posted December 16, 2006 Author Share Posted December 16, 2006 i want a PHP script that changes it..eevery x seconds...not javescript..i have seen it been done Quote Link to comment Share on other sites More sharing options...
monkey_05_06 Posted December 17, 2006 Share Posted December 17, 2006 The only way you could possibly do that in PHP would be to dynamically generate an image using PHP's image functions...but I'm not sure that you can draw multiple frames to a file (i.e., a GIF) nevermind setting the duration of the frame or the undraw method.Though I'm pretty well against using JavaScript...this is one time where PHP just won't cut it. :-\ Quote Link to comment Share on other sites More sharing options...
AndyB Posted December 17, 2006 Share Posted December 17, 2006 If it has to be php, then it'll be Ajax.Here's your example. Good luck.http://www.maxkiesler.com/index.php/weblog/comments/downloadable_ajax_galleries_slideshows_and_effects/ Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted December 17, 2006 Share Posted December 17, 2006 As javascript is the J in AJAX it would take use of javascript as well.If you need it all in PHP you might want to check out the refresh header and GET. Make PHP increase an image id each time it is refreshed. Quote Link to comment Share on other sites More sharing options...
monkey_05_06 Posted December 17, 2006 Share Posted December 17, 2006 But he said he needed it to change ever X seconds. Since you can't use headers after content has been sent (i.e., the image), that wouldn't work.It would of course work to make the image different on every page refresh...but then wouldn't it be more fun to make it generate a random image? Well...he did say he wanted it like a slideshow...but what kind of slideshow goes around expecting you to click refresh all the time? :P Quote Link to comment Share on other sites More sharing options...
DeathStar Posted December 18, 2006 Author Share Posted December 18, 2006 Well any keywords for any of those then?to search google or w/e?Caus i have a big problem having javascript in my header.. Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted December 18, 2006 Share Posted December 18, 2006 [quote author=monkey_05_06 link=topic=117999.msg486894#msg486894 date=1166398044]But he said he needed it to change ever X seconds. Since you can't use headers after content has been sent (i.e., the image), that wouldn't work.It would of course work to make the image different on every page refresh...but then wouldn't it be more fun to make it generate a random image? Well...he did say he wanted it like a slideshow...but what kind of slideshow goes around expecting you to click refresh all the time? :P[/quote]Well, then look at this: http://www.xaos-ia.com/daniel/non_javascript_slideshow/I know it isn't a header, but I used the meta tag instead. Gives the same functionality.(I got a headache when making it) Quote Link to comment Share on other sites More sharing options...
monkey_05_06 Posted December 19, 2006 Share Posted December 19, 2006 Interestingly enough I didn't even know about that option. But a Google search lead me to [url=http://webdesign.about.com/od/metataglibraries/a/aa080300a.htm]this page[/url] which cleared things up. :) Quote Link to comment Share on other sites More sharing options...
DeathStar Posted December 19, 2006 Author Share Posted December 19, 2006 http://www.xaos-ia.com/daniel/non_javascript_slideshow/?picture=3I was almost blinded :o :o :olol Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted December 19, 2006 Share Posted December 19, 2006 Here's the sources: http://xaos-ia.com/daniel/non_javascript_slideshow.zip[quote author=DeathStar link=topic=117999.msg488146#msg488146 date=1166536980]http://www.xaos-ia.com/daniel/non_javascript_slideshow/?picture=3I was almost blinded :o :o :olol[/quote]It's Web0.5 ;)Edit: teting attachments[attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted December 19, 2006 Share Posted December 19, 2006 MODS/ADMINS: DELETE - double post Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.