|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Alternating Pages
Hey guys,
I just wanted to know if someone would be kind enough and help me out with something I was working on. Nothing too big... I wanted to implement a system where I could setup an alternating page script. Basically what I want to do is have a directory of seperate html pages...and then have this script, fade from one page, to another page, to another page...and just do this continuously? Sort of like a scrolling news script, but a bit different? Your help would be REALLY appreciated - and I want to thank you in advance for your help ![]() |
|
#2
|
||||
|
||||
|
I realize you posted in the PHP/Python forum, but this could be done using DHTML...
Internet Explorer 4 introduced page transitions... Stick it anywhere within <head></head> Code:
<META HTTP-EQUIV="page-enter, page-exit, site-enter, or site-exit" CONTENT="revealTrans(Duration=time,Transition=Trasition type number)"> you probably want page-enter and transition=12... the duration you could play with, but try duration=3 <META HTTP-EQUIV="Page-Enter" CONTENT="revealTrans(duration=3,transition=12)"> To switch pages on a timed interval, try the "Refresh" option (another meta tag) Code:
<META HTTP-EQUIV="Refresh" CONTENT="4; URL=http://www.newsite.com/"> the first number is the length of time in seconds, and the URL is the address you want to switch to. |
|
#3
|
|||
|
|||
|
but with the code you showed.
How would I have the page1.html fade into page2.html which fades into page3.html and then start over? Another thing that I wanted to explain was that I want to display these fading pages INSIDE OF ONE MAIN PAGE. You know those "news" boxes on most INDEX pages on websites? Thats what I'm trying to develop. But instead what I want is to have 10-15 pages with different products on them...and I want it displayed on the INDEX page...so I can have a gallery of products that just sort of rotates infinetly, until someone clicks....(i'm thinking the area in which I wanna display this rotating system will be about 300 by 300 pixels. ONCE AGAIN - THANKS FOR ALL your help I really appreciate it. |
|
#4
|
||||
|
||||
|
oh, that's completely different...
I was assuming something like a Powerpoint Slideshow... but if its inside another page (IFRAME?) then those transitions won't work... the refresh still would though... put the <META> tag i provided before at the top of each of those 10-15 pages... So page1.html would have: <META HTTP-EQUIV="Refresh" CONTENT="4; URL=page2.html"> That doesn't solve the fading effect you wanted though... Perhaps a java applet would be more practical? Do you know of an example somewhere that you'd like to base it on? |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Alternating Pages |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|