Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Random Images On Eacht Pageload And Refresh., best in plain htlm or javascript
sxyloverboy
post Jun 16 2005, 01:04 PM
Post #1


Member [ Level 2 ]
Group Icon

Group: Members
Posts: 53
Joined: 29-January 05
From: Frankfurt, Germany
Member No.: 2,413



Im looking for somethin that puts a diffrent image for each pageload/refresh. And it should be something that dosent need any super server technolgys like php and mysql and all that stuff. something that is enough just on the page and finished.
Go to the top of the page
 
+Quote Post
overture
post Jun 16 2005, 01:23 PM
Post #2


Premium Member
Group Icon

Group: Members
Posts: 208
Joined: 6-September 04
From: England
Member No.: 315



Here you go, with a small amount of searching in google i found this:

CODE

<script language="JavaScript">
<!--
/*
Random Image Link Script
By Website Abstraction (http://www.wsabstract.com)
and Java-scripts.net (http://www.java-scripts.net)
*/

function random_imglink(){
 var myimages=new Array()
 //specify random images below. You can have as many as you wish
 myimages[1]="1.png"
 myimages[2]="2.png"
 myimages[3]="3.png"

 var ry=Math.floor(Math.random()*myimages.length)

 if (ry==0)
    ry=1
    document.write('<img src="'+myimages[ry]+'" border=0>')
}

 random_imglink()
//-->
</script>

Source: http://www.java-scripts.net/javascripts/Ra...ge-Script.phtml

It uses Javascript so it can be used on every single webpage imaginable, as long as the user has Javascript Enabled biggrin.gif.
Go to the top of the page
 
+Quote Post
sxyloverboy
post Jun 17 2005, 09:44 PM
Post #3


Member [ Level 2 ]
Group Icon

Group: Members
Posts: 53
Joined: 29-January 05
From: Frankfurt, Germany
Member No.: 2,413



ok thanks man. that was exactly what im looking for. its seems easy to use and expand.
Go to the top of the page
 
+Quote Post
finaldesign
post Jun 20 2005, 06:54 AM
Post #4


[+] Graphic Designer [+]
Group Icon

Group: Members
Posts: 614
Joined: 6-April 05
From: Croatia
Member No.: 3,666



But you can do exact thing in PGP, why not? I must say Im really not very good at PHP, but implementing an PHP script is simple as installing an aplication on your PC.
Go to the top of the page
 
+Quote Post
sxyloverboy
post Jun 20 2005, 03:54 PM
Post #5


Member [ Level 2 ]
Group Icon

Group: Members
Posts: 53
Joined: 29-January 05
From: Frankfurt, Germany
Member No.: 2,413



QUOTE(finaldesign @ Jun 20 2005, 05:54 AM)
But you can do exact thing in PGP, why not? I must say Im really not very good at PHP, but implementing an PHP script is simple as installing an aplication on your PC.
*



yeah i know that it would have been easyer to impliment an php script but the server i was using at the time didnt support php so that was out. but greatfully i now got hosted by astahost and can use php. hahaha. biggrin.gif
Go to the top of the page
 
+Quote Post
Feedbacker
post Apr 17 2008, 08:07 PM
Post #6


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869



Rotate links to the images?
Random Images On Eacht Pageload And Refresh.

Replying to overture

I need a script like this only plus individual links to each image, how would one go about that?

-question by Tristan
Go to the top of the page
 
+Quote Post
Feedbacker
post May 7 2008, 03:34 PM
Post #7


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869



but how to make it launch in a popup window...?
Random Images On Eacht Pageload And Refresh.

With window dimensions, toolbar, statusbar, and other settings specified in the random image generator script? I'm not having any luck on my end.

Thanks in advance for any help.

-question by anne
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. JavaScript template(1)
  2. Javascript(20)
  3. All Images Don't Show Up When Published!(7)
  4. What Is The Best Javascript Menu Builder?(7)
  5. Help>> Fade Images(1)
  6. Javascript Disables Css Link?(4)
  7. Php: How To Make A Menu With Images ?(6)
  8. Hiding/showing Text On Click(2)
  9. Get Input From Html/txt File?(2)
  10. JavaScript(1)
  11. To Display Images With Links In A Rotating Sequence Without Refreshing The Page!(0)
  12. Where To Get Chat/Guestbook/Photo Album etc. Scripts?(4)
  13. Javascript Show / Hide Functions(3)
  14. Can I Make A Webpage With Javascript(9)
  15. Ie Png Transparency Javascript?(3)
  1. Xhtml, Javascript, Css And Frames.(0)
  2. Javascript Problem(3)


 



- Lo-Fi Version Time is now: 20th July 2008 - 07:40 AM