Help - Search - Members - Calendar
Full Version: HTML Code
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
Draygonia
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.
pandy
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.
Draygonia
Thanks! I will see if this works smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.