The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom Banner Using Random Images and Graphic Overlay?
I got this idea when I saw the random images at the top of www.dgrin.com and started seeing the dhtml/ajax popups that sites are now using.
Since it is possible to overlay graphics on top graphics with transparency, how hard would it be to overlay a graphic onto a series of images like at the top of www.dgrin.com ? Since you can use some sort of transparancy, you would have a completely dynamic banner that changes constantly. This is what I'm set out to do, but I have no real experience in coding. I can figure out syntax and methods/functions and how to implement things, but I need almost an exact example for me to be able to reverse-engineer it and then use it for my purposes. I've built a vbadvanced module which is basically just a table with the images just like www.dgrin.com. Now I need to figure out how to overlay my graphic over the table. Any assistance or guidance appreciated. |
#2
|
|||
|
|||
No one has any idea on how to do this?
|
#3
|
|||
|
|||
Have you looked on dynamicdrive website? They might have something like this for you.
Actually, this isn't that hard using php. One way you can do it is using a php script that loads a random image. You make a directory and put all your images in there including the php script. Then you insert the php file as an image (ie <img src="/randomImages/random.php">) and it will load a random image for you each time. This makes it server side (doesn't rely on javascript) and you don't have to modify any vb php files. Below is the script. PHP Code:
|
#4
|
|||
|
|||
The random file part I've already coded, but the code you've posted is interesting as I've been interested in writing a script for another purpose that returns not only the image, but a clickable image that can go to a link.
The hard part about this project is I don't know how to do an overlay of a graphic over the resulting table of graphics, which I've already got working. I've read enough to know it can be done with CSS and two divs, one overlaying on the other, but I don't know how to do that. |
#5
|
|||
|
|||
Quote:
|
#6
|
|||
|
|||
That's true, you can't. But the script returns an image, which I didn't know how to do before. I can use that for another project I wanted to work on.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|