The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> HTML Code, Random display
Draygonia
post Feb 11 2007, 06:00 PM
Post #1


Novice
**

Group: Members
Posts: 24
Joined: 8-February 07
Member No.: 1,822



I have to code something into my topsite that requires it to display a random image out of a set of images. I remember seeing a random banner code somewhere, but forgot it and I think it was in javascript. Also, the image would be centered in a slice (Photoshop slice) of the page. How would I center it in that slice and be able to put some text below it automatically with the random code...

For example:

<Centered>IMAGE<Centered>
----------SKIP LINE---------------
<Centered>TEXT<Centered>

The hardest part is centering it within the slice and not the whole page.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 11 2007, 06:54 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



http://google.com/search?q=javascript+random+image

Centering, or whatever, has nothing to do with the script, or shouldn't have anyway. That bit is still HTML and CSS.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Draygonia
post Feb 11 2007, 07:32 PM
Post #3


Novice
**

Group: Members
Posts: 24
Joined: 8-February 07
Member No.: 1,822



Thanks! I will see if this works smile.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 01:31 AM