Wall Of Randomly Selected Images
Jul 14, 2010
I'm aiming for a page filled with a stack of images (about 20) - each pulled at random from a set of hundreds, ideally but not necessarily without repetition.There are heaps of threads discussing rotating individual images at random but I can't find any referencing a whole wall of images. The plan is for the arrangement to be determined only by the width of the browser so there really doesn't need to be any design to the page - just a long line of pictures, without gaps, wrapped.
View 14 Replies
ADVERTISEMENT
Apr 10, 2010
I am trying to imitate facebook's wall , and it should allow images if needed, instead of words. I know that this isn't possible without server side languages, but I'm just trying it out with Javascript, knowing that once I refresh, all my comments will disappear. However, the only problem is I am stuck on how to make an image show up. I've googled, and I've come to know that images can't be uploaded in a textarea. That is my option one, entitled working.html
OPTION 1(working.html)
-Every comment will be uploaded into one single textarea. My problem is, where do the images go?
OPTION 2 (fran.html)
- Once a commenter posts something, a new textarea will be created using innerHTML, that way, I can use divs to upload the image right next to the textarea.
-Except, this should be vertical, not horizontal, like I have it.
And how do I put an image in from a user input? (The user will type the location of the image in the local computer in a form text box, and once they click submit, the image should upload.) My professor won't allow us to use the input type "file."
Attached File(s)
Working.html (1008bytes)
Number of downloads: 115
fran.html (986bytes)
Number of downloads: 72
View 1 Replies
View Related
Jan 22, 2011
What I'm looking to do is have a folder of images that I have show up on my website.I'm also looking to pull from this folder up to 6 or 7 times on the same page w/ randomized pictures that do not repeat.Finally, I'm looking to be able to size and name these images based on which image randomly pulls. b/c it's not grabbing the images.
images = new Array()
images[images.length] = 'images/example.jpg'
images[images.length] = 'images/example.jpg'[code].....
View 7 Replies
View Related
May 12, 2010
I am randomly selecting the maths symbol (+,-,*,/) using a math.random and then applying the relevant symbol to a variable based on the result, ie if result == 1 then symbolGen = "+"
I now need to use this symbol in the Javascript for it's original purpose, as I have two other numbers being generated and need to work out the answer.
View 4 Replies
View Related
Mar 9, 2009
I found the following script for random banner ads at [URL]. It is almost what I want, except it only appears to work once, and then no more. I suspect it has something to do with the "today" functions near the end, but being a complete novice, have no idea what to do to make it work every time I refresh.
Here's the script:
<SCRIPT>
<!-- written by The Omega
// [URL]
// the_omega@geocities.com
// You must leave these comments in to use the script
// (hey, I wrote it. Let me have a little credit!)
// put info for randomly selected banners here, as in the examples
gfx0="banner1.gif";
lnk0="page1.html";
alt0="Alt code 1";
txt0="Tagline 1";
gfx1="banner2.gif";
lnk1="page2.html";
alt1="Alt code 2";
txt1="Tagline 2";
gfx2="banner3.gif";
lnk2="page3.html";
alt2="Alt code 3";
txt2="Tagline 3";
len=3; // change to equal number of banners
today=new Date();
today=today.getTime()/10;
rnd=today%len;
document.writeln('<A HREF="'+eval("lnk"+rnd)+'"><IMG SRC="'+eval("gfx"+rnd)+'" ALT="'+eval("alt"+rnd)+'"><BR>'+eval("txt"+rnd)+'</A>');
//-->
</SCRIPT>
<p align="center"><font face="arial" size="-2">This free script provided by</font><br>
<font face="arial, helvetica" size="-2"><a href="[URL]">JavaScript
Kit</a></font></p>
View 4 Replies
View Related
Jan 20, 2011
I created a slideshow that displays the 5 images randomly. It is for a college project for a class I am in.
Here is the HTML for the area that holds the images
And here is the external .js file for it
I had the slideshow working completely fine... then when i finished the rest of the site and added more pages, it is now not working for me. It just sits at the original image that is loaded when they site loads.
View 1 Replies
View Related
Feb 25, 2006
Im trying to design a website at the moment...
and i dont know the first thing about javascript...
Basically what i want to do is have 6 images change randomly on load of the webpage...
Basically i have:
- 1 main image
- 1 logo
- 4 buttons
Now these buttons all have a certain colour in them...
Each one is different... (green, blue, orange, purple)
So when someone loads the webpage i need all the images to change randomly...
BUT, here comes the hard part for me...
I need the images to all change together...
So i dont have a green button, a red logo, a blue main image...
As they are randomly changing on load of the page, i need them to all change together... so there are 6 RED images...
Next time they load, there are 6 green images...
Its essential that colours are not mixed...
View 5 Replies
View Related
Apr 22, 2006
I have a flash menu bar at the top of my html page... I have 4 flash files with the same menu but the main image for each is different. When someone goes to the page I want it to randomly pic on of the 4 flash files to display in the table... They are called menu_1.swf, menu_2.swf, menu_3.swf, menu_4.swf...
View 1 Replies
View Related
Aug 15, 2010
I have a concept I want to develop but haven't been able to find a jQuery plugin that will do what i need. I am hoping if someone knows of a script or even to share if this is possible.
What I want is to have about 10 small images to be displayed horizontally and have each of these images fade in and out at random times and being replaced by other images.
I have a flash example that i would like to replicate that would give you an example of what i want to achieve. If you look at the bottom of the page where the platinum sponsors are this is what i want to replicate.
[URL]
View 2 Replies
View Related
Apr 7, 2010
I have multiple divs on a page, each with some images in it, you could think of every div as a row. On .ready() the images in these rows are being .hidden()What I want to happen next is that the images in the rows are being loaded randomly with a .fadeIn() but every image 1 second after the other. I've tried some things but I can't seem to get it all together
View 1 Replies
View Related
Mar 16, 2010
I'm creating a web page that randomly shows images when when a button is clicked. I appear to be having 2 main problems with it so I'll begin with what seems to be the easiest one to tackle.as the user scrolls down the page I need to keep the button statically, in the top right corner.here's the relevant code:
css
#button{
position: absolute;
[code]...
View 1 Replies
View Related
Aug 29, 2010
Im trying to have a click event that replaces an image on the page with a new image that has been selected randomly from an array. I have solved PART of this already (can get the random image to appear).
However, instead of appearing on the page where the old image was, the new image appears in a blank page.
My research indicates that thisblank page location-problem is a result of using document.write in the Function. Therefore, I know I need to find a different way to accomplish this, but am failing miserably.
I have been trying for hours and hours and HOURS to figure out proper syntax for accomplishing this via elements, functions, variables and mootools.
A bit of my research:
I found this---but havent figured out how to implement it in my scenario:
I found this---but havent figured out how to implement it in my scenario:
Code:
Source: [url]
View 1 Replies
View Related
Nov 28, 2011
I need to create a page containing five image tags, two buttons, a <select> and a <textarea>. The images tags will each contain a picture of one of six possible outcomes for the dice portraying the numbers one through six..
The first button: When the user clicks on the button, all dice are rolled once. For each die when rolled, the src of its image tag is replaced with a random one of six possible pictures -- each picture being chosen with equal probability (1/6).... I HAVE THIS DONE
The select: The user may select any of the numbers one through six. Whenever a picture is clicked upon, then that die takes on the value shown inside the <select> THIS IS WHAT I NEED HELP WITH
The textarea: Results of the dice rolls should be kept as a running log (a cumulative history) in a textarea at the bottom of the page. With each roll (initiated by the click of the button), we should be able to see the complete history of all current and previous dice rolls. You need not consider changes brought about clicks on individual dice in conjunction with the <select>....I HAVE THIS DONE
The second button: A button below the textarea, should allow the user to obtain a report (overwriting the current contents of the log in the textarea) which tabulates the frequency of each of the six outcomes plotted separately for each of the dice. The frequency tabulation should show how often each die was rolled, as consistent with the data stored in the log..
[Code]...
View 1 Replies
View Related
Feb 22, 2010
I found this perfect javascript for creating dynamic connected drop down boxes. This script works fine but there is just one thing I want to add but unfortunately I'm not familiar with javascript enough... I want to display small images when an item is selected from the second drop down. An image should be assigned somehow to each selection from the right hand drop down menu in the code and when someone selects something from the list, an image should be displayed next to it automatically.
[Code]...
View 3 Replies
View Related
Apr 3, 2009
how to achieve the same affect with the code pmw helped me with several months ago this time around im trying to achieve the same affect instead of displaying one image im wanting to display text but stuff like this depending on what is selected once again it will display the following.the url for this is once again here.how much space,bandwidth,ram for gaurantee and burstable ram and ips etc.. now how can i do this using the following code below.
PHP Code:
?>
<script type="text/javascript">
document.getElementById('plan').onchange = updateRacquetImage;[code].....
View 1 Replies
View Related
Nov 29, 2010
I'm looking to see if anybody knows of a JS library that provides a similar user interface to what these 3 flash interfaces are doing.
[URL]
View 1 Replies
View Related
Oct 15, 2009
I have the following code but it simply writes the path to the webpage.I actually want it to randomly select the .js code in that path and run it.
View 1 Replies
View Related
Mar 3, 2010
I am currently designing a site, and on it there will be affiliate advertising. As i have many different affiliates i want the page to randomly select one of these affiliates' adverts to show in the places that i have designated. Each affiliate has given me some code to drop in to my html page. I was wondering if there was some javascript that would select randomly one of these bits of code and display it on the page load, in effect removing the need for me to continually have to manually update and change the code so that it shows a rotation of these adverts.I imagine that it would be some sort of script that reads from an array (this array has each different advert code in it).
View 6 Replies
View Related
Jul 22, 2010
I want to display varying company information from a javascript array randomly each time the page is refreshed. My problem is that the each piece of company information must be split up into 3-4 array elements since I have set up spans in the body where the information go accordingly and as such I don't how to randomize that.So essentially the process is:
1. The person clicks on the company name.
2. Relevant information from the array is shown in the div.
But what I want is that on startup, information about a random company is shown automatically. How can I achieve this?
View 2 Replies
View Related
Dec 30, 2009
I am trying to make a script that would open a link every xx randomly seconds.
So far I have come up with this after searching:
<script>
function reloadMe() {
window.location.reload();
}
[Code].....
This works on refreashing a page every xx seconds between 30 and 60 seconds. But it does not open a link.
Is it possible to make a script that opens a link every xx seconds at random. It would be even greater if it can exclude certian times of the day, or can that be done with a cron job?
View 3 Replies
View Related
Jun 3, 2010
I've managed to get a slideshow to randomly display pictures, but each time I try to add a fade into it, it never seems to work.
<script language="javascript">
var delay=2500 //set delay in miliseconds
var curindex=0
[Code]....
View 1 Replies
View Related
Nov 16, 2010
Using JavaScript, I require a code that allows me to play .wav sound files randomly and automatically on page start-up, I also need them to loop as they are drum beats. The plan: to load my web page and hear a random drum beat that loops continuously. I need it to be compatible with most, if not all Internet browsers (Chrome, Internet Explorer, Firefox and Opera are crucial) and to state what sound file is playing on the page (allowing me to identify the looping drum beat/sound file), and if possible to provide a link to the actual sound file for download.
View 15 Replies
View Related
Jan 9, 2007
If I have a .js file filled with data like links. how do i access just
1 element [random] and bring it on my page
View 2 Replies
View Related
Jan 19, 2011
I want to randomly select one item from all those that are checked in a list of checkboxes. The checkboxes all have the same name, "members". I think my problem is creating the new array of names - only those that are checked - from which to randomly select the single item. Based on the below, if I select the top and bottom items, I get something like: Joe,,,,,,,,,Bob as my array output for checkednames code...
View 7 Replies
View Related
Jul 24, 2010
This is a weird idea I have- i will try to explain it all (forgive me if i do not).
i'm using xml to create dynamic content on the site i'm building for myself.
now, i know there is a way to randomly load xml content using php-
but i have zero experience with php (though i not afraid to learn it, if it is the only way to do this).
here's what i want to do:
i have (let's say) 4 "announcement" areas on a page, in addition to a "random info" bar off to the side. in each of these, i want to have randomly loaded xml content each time the page is refreshed/viewed.
so if i have a "recent site news" section on the page, i would have a folder for "some code" to look in to pull out an xml file to display. etc etc.
basically, i'm wondering if there is a java way to do this (perhaps similar to the choosePic function?). it doesn't have to load a different xml file each time the page is refreshed either- if there's a way to pick a set number of items from any xml file i specify- that would be ok too.
View 6 Replies
View Related
Feb 6, 2011
Basically, I want to make it so there is a button, and when you click it, it plays a random song from a list of songs that would be in the code. I am not completely sure if this is possible or not.
I know how to make the button, that is simple.
View 2 Replies
View Related