| | |
Random text and images
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2007
Posts: 2
Reputation:
Solved Threads: 0
I've got a client who wants their header to contain random changing images and random changing text. I have a script written that is changing images and it works great. I've also found scripts that randomize images and text.
Here's the catch though, I need the text and images NOT linked. So that text_a could end up showing at the same time as image_1 or image_6.
The other catch is that the text needs to overlap the image. Not be above or below.
I have no idea how to do this. I'm not even positive I can do this with JS. If anybody has any idea of a script I could use or an app or anything to accomplish this that would be awesome.
Thanks!
Here's the catch though, I need the text and images NOT linked. So that text_a could end up showing at the same time as image_1 or image_6.
The other catch is that the text needs to overlap the image. Not be above or below.
I have no idea how to do this. I'm not even positive I can do this with JS. If anybody has any idea of a script I could use or an app or anything to accomplish this that would be awesome.
Thanks!
As for the randomness, you can store the text in a Javascript array. The same goes with images. Then generate two random numbers. If they are not equal display the combination, and if equal, then generate another set within the specified bounds.
The positioning is more of CSS + XHTML than Javascript.
The positioning is more of CSS + XHTML than Javascript.
I don't accept change; I don't deserve to live.
![]() |
Similar Threads
- Pixelated Images in IE6 with clean install? (Windows NT / 2000 / XP)
- Random image with text and link (JavaScript / DHTML / AJAX)
- nVidia Card; Games with presistant white flickering. (Monitors, Displays and Video Cards)
- Random Spacing? (HTML and CSS)
- Random text display with image, link (PHP)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: expanding table in flash/javascript required
- Next Thread: Really simple script request - Count from 6 - 0
| Thread Tools | Search this Thread |
ajax ajaxexample ajaxjspservlets array browser bug captcha captchaformproblem cart checkbox child class close codes cookies createrange() cursor date debugger dependent disablefirebug dom dropdown editor element embed engine enter events explorer ext file firefox form forms frameworks getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe images internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump libcurl maps marquee masterpage math matrixcaptcha media menu object onerror onmouseoutdivproblem onreadystatechange parent paypal pdf php position post programming progressbar prototype rated redirect runtime safari scale scriptlets scroll search security session shopping size software star stars synchronous toggle unicode variables web webservice wysiwyg \n






