Nov 25, 2009

Random Images On Eacht Pageload And Refresh. - best in plain htlm or javascript

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Designing > Web Design and HTML

Random Images On Eacht Pageload And Refresh. - best in plain htlm or javascript

sxyloverboy
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.

Comment/Reply (w/o sign-up)

overture
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.

 

 

 


Comment/Reply (w/o sign-up)

sxyloverboy
ok thanks man. that was exactly what im looking for. its seems easy to use and expand.

Comment/Reply (w/o sign-up)

finaldesign
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.

Comment/Reply (w/o sign-up)

sxyloverboy
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

Comment/Reply (w/o sign-up)

FeedBacker
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

Comment/Reply (w/o sign-up)

FeedBacker
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

Comment/Reply (w/o sign-up)

(G)Christian Harkness
what code to I need to inser/replace
Random Images On Eacht Pageload And Refresh.

With what word do I need to replace 'randomimage' with if I want just a straight slide show with the images in numerical order?

Thanks for any help!

christian -question by Christian Harkness

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : random, images, eacht, pageload, refresh, plain, htlm, javascript

  1. Javascript Problem
    (3)
  2. Xhtml, Javascript, Css And Frames.
    (0)
    Hello, I am building a form where a user selections several options (it uses javascript to modify
    checkbox values based on other selections). At the end I need to re-generate html code based on the
    selected form values, I don't particularly care what way it's done (although my site is
    XHTML 1.0 Transitional), but I need it to update on the fly as they change options. The HTML code
    is Google AdSense code, and I am trying to build my own from to generate all the different ad types
    and generate the code (it's not just for me). What kind of options do I have?....
  3. Ie Png Transparency Javascript?
    is there one? (3)
    im working on a new design for my website but i need to be able to have transparent pngs. its all
    fine in firefox and i think IE 7 it works, but IE 6, cos i no half the people that will be going on
    my site will use internet explorer 6. so basically, does anyone know any javascript that will make
    transparent PNG's work on internet explorer? id use gif but i dont just want a transparent
    background. also, id use CSS and just gifs but i need some of it to not be transparent, lol im
    fussy. so if you know anything please tell me, i gave up on javascript, its too hard. ....
  4. Can I Make A Webpage With Javascript
    title kinda says it all (9)
    ok, i plan to make a game, and i was wondering if i can make my webpage in javascript, i just
    started learning it for this massive enderour i plan to over take, and i wanted to know if it was
    possible lol. im also learning php and mysql. Thanks, Zemon1....
  5. Javascript Show / Hide Functions
    need some fine-tuning (3)
    Searching before posting my topic, i found this very helpful post. Javascript show + hide
    However, I'm still muddling around trying to fine tune it, and since i'm no good at coding,
    I'd appreciate any help. Using that example, how do I get the div text to be hidden on loading,
    rather than showing it all at page load. Also, is there a way to have the text change when clicked?
    so that for example, it would say "expand" when it's the small amount of text, and "collapse"
    when it's the full text? ....
  6. Where To Get Chat/Guestbook/Photo Album etc. Scripts?
    javascript and flah chat , guestbook, photo album and other (4)
    Post here some links where u can download flash or javascript chat , guestbook, photoalbum, forum
    ... etc ......
  7. To Display Images With Links In A Rotating Sequence Without Refreshing The Page!
    how to rotate images with links in a sequence automatically without ha (0)
    hai this is my first post and i really hope someone finds it useful. i was looking for this trick
    for long and finally found out today... to rotate images in your page automatically in a sequence
    without having to refresh the page. i find it particualry useful to highlight on the home page the
    various contents inside my site. Copied from
    http://www.cgiscript.net/cgi-script/csNews...6.5787238091439 QUOTE Step 1: place the code
    below between the and tags within the HTML page where you want the random banners to appear.
    CODE                           ....
  8. JavaScript
    (1)
    Is there any place that i can get javascript from to use on my web page? Also are there any
    tutorials on how to write javascript. I have no idea how it works and would be greatful for any help
    that i can get. Thanx....
  9. Get Input From Html/txt File?
    with just html/css and maybe javascript? (2)
    I was just wondering if it's possible to retrieve text (and maybe images) from a .html or .txt
    file. So for example you get the header and footer from an external file. Is it possible with just
    html/css and maybe a little javascript or does it require server side scripting like php???
    -=jeroen=-....
  10. Hiding/showing Text On Click
    is it possible with css/javascript (2)
    Ok, I got an question: I want to make a site with a news box or something similar. It's gonna be
    a table with a small piece of text and an "read more" button. Now I want to make it so that if
    people click on the "read more" there will appear an other piece of text underneath it. How do I do
    this? thanks in advance, -=jeroen=-....
  11. Php: How To Make A Menu With Images ?
    Help needed (6)
    i try to make a site and i know html but i don't understand php, can somebody post some
    code's? know somebody how you must make a menu in php with images at it, etx.....
  12. Javascript Disables Css Link?
    (4)
    Here's the code I'm using for my javascript link I decided to add to a website I'm
    working on: Go Back The problem is that the css doesn't affect the javascript link. It
    displays as a plain blue underlined link. The stylesheet correctly renders regular links to other
    pages in the site, so the problem doesn't lie in my CSS coding. Thanks for the help.....
  13. Help>> Fade Images
    (1)
    Hi, Im trying to find out how to fade in scaled down images when the user holds the mouse over the
    image. The image will be linking to the original image in a popup window that fits the size of the
    image, if that makes any difference. also i dont want the image to be totaly faded out before the
    user puts the mouse over, like 20% visible then when mouse over occurs it slowly goes to 100%, hope
    u can help......
  14. What Is The Best Javascript Menu Builder?
    (7)
    I really need a free, cool and easy-to-integrate JAVASCRIPT menu builder for my new site. I mean
    free to use as in unlimitated use provided i link the producer's site to my menu. Anyway if
    someone knows anything pleas help. Thanks !!....
  15. All Images Don't Show Up When Published!
    Site looks OK when previed on computer (7)
    First attempt to publish the site didn't work to good. /sad.gif" style="vertical-align:middle"
    emoid=":(" border="0" alt="sad.gif" /> I have all the images used to test in /images/ folder and
    it's my first attempt on using CSS so it may be botched on the css level /wink.gif"
    style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> My CSS file are here at:
    style.css . I created a index.html file and uploaded it together with all the images used. In the
    #header part 1 image show up but not the other (second image show not the first). Background im....
  16. Javascript
    Do you use javascript in your page ? (20)
    Hi , I begin to use Javascript recently. I understand very well and I'm already able to make
    little scripts. I like Javascript , it adds interactivity to the page. But sometimes , it is not so
    good ( Alerts while a page is loading ) So when do you use it , and when do you think Javascript is
    the most useful on a page. Thanks Mathieu....
  17. JavaScript template
    (1)
    to begin a javascript template, you will need to begin with this code.... Untitled
    Document ....
  18. Dynamic ASP Javascript
    (0)
    to begin a dynamic ASP Javascript you will need to begin with this code..... Untitled
    Document ....
  19. Protect images from Right-click
    No scripts - just a small trick (5)
    Offen happens to see your images used in someone's website. Here is a little trick how protect
    them, from the right-click 'Save Image As..' If you use tables, you can use the
    'real' picture as backgroung in a cell and use a 1x1 tranparent GIF to cover it. See the
    code to understand. CODE ....

    1. Looking for random, images, eacht, pageload, refresh, plain, htlm, javascript

See Also,

*SIMILAR VIDEOS*
Searching Video's for random, images, eacht, pageload, refresh, plain, htlm, javascript
advertisement



Random Images On Eacht Pageload And Refresh. - best in plain htlm or javascript

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com