View Full Version : rotating banner
sneedell
05-05-2006, 02:32 PM
I just created a rotating banner with layers in Dreamweaver 8 and i cannot figure out how to fix the problem with the positioning of the banner when you view it in full screen it is correct but if you resize the browser window it is not centered.
Any suggestions would be extreamly helpful and appreciated!
Thanks
synthetic
05-15-2006, 05:39 PM
I just created a rotating banner with layers in Dreamweaver 8 and i cannot figure out how to fix the problem with the positioning of the banner when you view it in full screen it is correct but if you resize the browser window it is not centered.
Any suggestions would be extreamly helpful and appreciated!
Thanks
the problem with layers is... unless you make the layer with banner fill 100% width and then center the content inside... you will have to probably use javascript to take a measure of the window size and then create a variable that divides that by 2 and then adds half the width of the banner layer for the left position. There may be other ways but these are only 2 I am aware of currently.
A.Fairhead
09-10-2006, 06:07 AM
By using a couple of PHP embeds, it's pretty easy to create a rotating image. Assuming that the main page is a PHP page (There are other ways, too) then you can import a PHP file which has just the image in it - the image path is a file, though, rather than the image. That file, can contain information for where the images in the rotation are found, and with some script stating to 'choose' between them on each load.
A little hunt on the web for that bit of script should do the trick - I have it saved somewhere; mail me if you can't find it and i'll try to sort you out with something ;)
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.