HTML - Rotating Page Code Hese?
can anyone help me with this code i found on the 'net?
it basically rotates webpages after a certain delay. the problem is that when it first loads up you get a message saying error, BUT THEN IT DOES LOAD after the time period. I am worried that people will click away as they anticipate a broken link, but i cannot change the wait time to anything less than what it is already. is it possible to put in a "wait message screen" or get rid of the error? Quote: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Rotating Page</title> <style type="text/css"> * { margin:0; padding:0; border:0; } html, body, iframe { height:100%; width:100%; overflow:hidden; } </style> <script type="text/javascript"> var pages = new Array(); // this will hold your pages pages[0] = 'page1.html'; pages[1] = 'page2.html'; pages[2] = 'page3.html'; pages[3] = 'page4.html'; pages[4] = 'page5.html'; pages[5] = 'page6.html'; var time = 30; // set this to the time you want it to rotate in seconds // do not edit var i = 1; function setPage() { if(i == pages.length) { i = 0; } document.getElementById('holder').setAttribute('src',pages[i]); i++; } setInterval("setPage()",time * 1000); // do not edit </script> </head> <body> <iframe id="holder" src="page1.html" frameborder="0" scrolling="no"></iframe> </body> </html> and here is my page so you get an idea of it running with the false start (remember to wait 15 secs or so) http://www.maidenerleghweather.com/rotate.html Similar TutorialsDear HTML'ers, Do you guys know how to insert an animation like this? http://www.creativeweb-design.com/ Hey, I'm looking to set up a system of 5 different splash pages, loading in order for the user so they never get the same one twice. I think I did something like this before only with HTML... anyone have any tips??? okay probably a simple feat for some of you, but if I wanted to make a nbanner that flitted (rotated) through several images, say four location shots, how does one do this? I do have in my employ: Adobe Photoshop Adobe Dreamweaver and my favorite coding program : Notepad Do I make an animation in Photoshop and save it as a ,gif and use that in Dreamweaver and add the link there? Would that work? hrm. *pulls her skirt down a bit* I think my noob is showing I am on a host that does not allow ftp to the site. We can use javascript, html, but nothing that would require calls to a db as we don't have CGI capability. I am an Amazon associate and the banners they give us to use are in iframes. I'd like to be able to rotate different banners they have but don't know how to do it. I found a javascript for rotating banners, but it doesn't work with Amazon's iframe banners. Can this be done? If it can be done, could I also rotate other banners with it that are not in iframes, but are just typical with the graphic url and the destination url? Thanks. Greetings y'all. I've been trying to get user input using form with the LINK method to recreate the user text on the next page to be at a slant 45 degree, using transform function of css. In my first page: <FORM id="userTextForm" METHOD="LINK" ACTION="text.html"> <textarea rows="5" cols="20" wrap="physical" name="userText"> Enter your thoughts here </textarea> <input type="submit" value="submit thoughts"> </FORM> Is there anyway for me to display the input on the next page with just css transform or do I have to do something else on the server side. Hi there, On one of the pages of my website i'm getting a few errors from the validator, all of them problems with the table i'm using. Here are some of the errors... Quote: Line 81 column 51: there is no attribute "align". <td><table width="99%" border="0" align="left" cellpadding="1" cellspacing="2"> Quote: Line 83 column 24: there is no attribute "width". <td width="99%" height="13" valign="top" bgcolor="#DDDDDD"><table Would really appreciate any help offered Thanks. Matt I'm new to HTML and I need help with posting up c++ code. I have very bland formatting for code in my blog. I need to be able to post up c++ code like in this guy's Blog Or like this guys site Notice how the c++ code is formatted nicely to show line numbers and colors. What tags or techniques does one use to get this kind of formatting? I'd like to display code in my page such as java/c#/html etc. like PHP Code: import java.applet.Applet; import java.awt.Graphics; public class HelloWorld extends Applet { public void paint(Graphics g) { g.drawString("Hello world!", 50, 25); } } In other words I need the php tag functionality. How to? Thanks hello i can't get my web page to display a picture from picture folder i have to use notepad its for my college assignments. anyone have any ideas what i'm doing wrong? Hi everyone, Im just about the start my company and as im the only one running it i have to do everything include building my own website! i think its safe to say i have very little knowledge of building sites and all that goes with it. i have bought my domain and would like to get a page up there wiht something along the lines of... Sowing my Logo email address myspace link etc So my question is, is there any free code out there which i can just use for my splash page? it will also say website coming soon. i know this is a very lazy approach but time is of the essence and all the help i can get would be great. ive had a shot before at HTML and i have to say i found it difficult as i come from a Video Production background. so any help and any links to any information would be great! I know there is no easy way around this but if i could just at least get something to show that i have a site would be geat! Thanks for you time A site I work for is using a habbo fansite forum. There using a rare values system by Bobboid. (Project Rare Value) But the page that the forum users are meant to see (with the values on) is completely blank. The system has a CP. Ive been given admin so i can fix it. But the source code is giving me no clues as to whats wrong! Heres the code for the CP. (when you add a value) Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Bobboid Rare Values</title> <link rel="stylesheet" HREF="style.css" TYPE="text/css" media="screen"></head> <body> <div id="main"> <p><img src="banner.png" width="500" height="175" /></p> <div id="navigator"> <p><strong>Navigator</strong></p> <p><br /> <a href="admin_home.php">Home</a><br /> <a href="admin_password.php">Change Password</a><br /> <a href="admin_logout.php">Logout</a><br /> <a href="admin_editrarevalues.php"><br /> Edit Rare Values</a><br /> <a href="admin_editseasonalvalues.php">Edit Seasonal Values</a><br /> <a href="admin_editsupervalues.php">Edit Super Rare Values</a><br /> <a href="admin_editbankvalues.php">Edit Bank Item Values</a> </a><br /> <a href="admin_editseasonalvalues.php">Edit Other Rare Values</a><br /> <br /> <br /> <a href="admin_addrare.php">Add Rare</a><br /> <a href="admin_editrare.php">Edit/Delete Rare</a><br /> <a href="admin_viewhistory.php">View History </a><br /> <br /> <br /> <br /> <a href="admin_adduser.php">Add User</a><br /> <a href="admin_removeuser.php">Remove User</a><br /> <a href="admin_edituser.php">Edit User</a><br /> <br /> <br /> <br /></p> <p> </p> </div> <div id="content"> <p><strong>Add a Rare </strong></p> <form id="form1" name="form1" method="post" action=""> <label><em><strong>Details</strong></em><br /> <br /> Rare Name <input name="name" type="text" id="name" /> </label> <br /> <label>Rare Type <select name="type" id="type"> <option value="rare">Rare</option> <option value="seasonal">Seasonal</option> <option value="super">Super Rare</option> <option value="bank">Bank</option> <option value="other">Other</option> </select> And heres the code for the page that the forum users are meant to see the values and that on: PHP Code: Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"></HEAD> <BODY></BODY> <META content=ORTNQESHAF name=SKYPE_FRAMEID></HTML> Are there any clues as to how i can rebuild the code for that page? Because someone has deleted it! Please help il find some way to thank you! I'd like my MP3 file to play continuously, without starting over each time a new page is opened. Is there code for telling the mp3 to not start over when opening a new page? Here's the code I use now: <EMBED SRC="Jaded.mp3" AUTOSTART="true" HIDDEN="false" LOOP="true"> Thank you for your assistance! Is there a way (HTML, CSS or Java) to make an index page open automatically 150 pixels down from the actual top of page? Reason: I have a lot of cheap hosted sites with banners at top and it would be great if I could get the page to automatically open with the top banner scrolled off the top of the screen. OK, I'm cheap...... I admit it but I was thinking that it would be nice if this could work..... I can't seem to figure out if there is a name for what I am wanting to do. I am wanting to create a website that has a menu bar on every page. The home page will have a menu bar. On the menu bar will be links such as "Home" and "About Us". Once you click on each link, it directs you to a new page which again has the same menu bar on top of the page. If I decide to Add, Modify, or Delete anything in the menu bar, I would have to go to every page that I have created and change the code from there on, creating a tedious task. Here is what my idea consists of: On a central "hub" document on the server would be a document with the following code: <Link Name= John> <a href="home.htm">HOME</a> | <a href="aboutus.htm">ABOUT US</a> | <a href="mediation.htm">MEDIATION</a> | </Link> On a completly separate page, I would write the following anywhere in the code: <Reference Link Name = John> And it would copy the code Name = John which is saved on another document and transfer it over to this new page. I would want this so I can write <Reference Link Name = John> so if I wanted to Add, Modify, or Delete anything in the menu bar, I could simply do it from one central place, rather than doing it 40 different times on 40 different pages I have created. I hope I drew out a picture well enough for what I am trying to accomplish! Hey, Ok so on my site it uses Ajax. Now if i try to submit a comment when i click submit it refreshes the whole page and does nothing! After the page had been refresed I can commetn on the script again and it shows the text i entred on the page with no refresh. Why does it refresh the page on the 1st post?? The site is he http://www.runningprofiles.com/members/Admin HTML Code: <div align="center"> <table width="500" align="center" cellpadding="0" cellspacing="0"> <tr> <td> <table style="WIDTH: 500px" cellspacing="0" cellpadding="0" align="center"> <tr> <td align="center"> <strong>What are you doing?</strong></td> </tr> <tr> <td align="center" valign="middle" class="update_box"> <form method="post" action=""> <textarea cols="5" rows="10" id="content"></textarea> <div id="button_block"> <input name="submit" class="comment_button" type="submit" id="button" value=" Share "/> <input type="submit" id='cancel' value=" cancel" /> </div> </form> </td> </tr> </table> <div id="flash" align="left" ></div> <div id="update" class="timeline"></div> <?php $small1=mysql_query("select * from messages2 order by msg_id desc LIMIT 5"); while($r=mysql_fetch_array($small1)) { $id=$r['msg_id']; $msg=$r['message']; $times=$r['time']; ?> <table id="table_<?php echo $id; ?>" width="100%" > <tr> <td colspan="4"> <hr style="COLOR: #6d7b8d; HEIGHT: 1px; BACKGROUND-COLOR: #a9d0f5" /> </td> </tr> <tr> <td valign="top" width="10%" rowspan="2"><img height="40" alt="Pic" src="http://www.gravatar.com/avatar.php?gravatar_id=7d09b47edf3bdbedb4cb104fb507c3df" width="40" border="1" longdesc="http://www.gravatar.com/avatar.php?gravatar_id=7d09b47edf3bdbedb4cb104fb507c3df" /></td> <td valign="top" align="left" width="12%"><strong>Jarratt</strong></td> <td valign="top" align="left" width="63%"> <?php echo $msg.'....'.$id;?> </td> <td valign="top" align="right" width="15%"><div class="UIStory_Hide"><a href="#" id="de<?php echo $id ?>" class="delete_update" title="Delete Update">X</a></div> </td> </tr> <tr> <td align="left" colspan="3"> <span class='feed_link'><a href="#" class="comment" id="<?php echo $id; ?>"><font color="#cc0000">Reply</font></a></span> <span style="FONT-SIZE: 10px; color:#cc0000; COLOR: #a9a9a9"> <?php echo time_stamp($times) ?></span><br /><br /> <?php //Here $id is main message msg_id value. $csql=mysql_query("select * from comments where msg_id_fk='$id' order by com_id "); $comment_count=mysql_num_rows($csql); if($comment_count>2) { $second_count=$comment_count-2; ?> <div class="comment_ui" id="view<?php echo $id; ?>"> <a href="#" class="view_comments" id="vi<?php echo $id; ?>"> <span style="COLOR: #696969"><b>View all <?php echo $comment_count; ?> comments</b></span></a> </div> <?php } ?> <div id="view_comments<?php echo $id; ?>"></div> <div id="two_comments<?php echo $id; ?>"> <?php $small=mysql_query("select * from {$prefix}comments where msg_id_fk='$id' order by com_id limit 2 "); ?> <?php while($r=mysql_fetch_array($small)) { $c_id=$r['com_id']; $comment=$r['comment']; $timeofpost=$r['time']; ?> <table width="80%"> <tr> <td align="center" valign="middle" style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid"> <div class="comment_actual_text"> <table style="WIDTH: 100%; BORDER-COLLAPSE: collapse" align="left"> <tr> <td width="15%" style="VERTICAL-ALIGN: middle; TEXT-ALIGN: center"><img style="WIDTH: 30px; HEIGHT: 30px" alt="srinivas" src="http://www.gravatar.com/avatar.php?gravatar_id=7a9e87053519e0e7a21bb69d1deb6dfe" border="1" /></td> <td width="85%" style="PADDING-BOTTOM: 2px; VERTICAL-ALIGN: top; PADDING-TOP: 2px; TEXT-ALIGN: left"> <strong>Jarratt</strong> <?php echo $comment; ?> <br /><span style="FONT-SIZE: 10px; COLOR: #a9a9a9; COLOR: #a9a9a9">10min ago<?php //echo time_stamp($timeofpost); ?></span></td> </tr> </table> <br /></div> </td> </tr> </table> <?php }?><div id="commentload<?php echo $id; ?>" > </div> </div> </td> </tr> </table> <div id='expand_box'> <div id='expand_url'></div> </div> <div id="fullbox" class="fullbox<?php echo $id; ?>"> <form method="post" action="" name="<?php echo $id; ?>"> <textarea class="text_area" name="comment_value" id="textarea<?php echo $id; ?>"> </textarea><br /> <input type="submit" value=" Comment " class="comment_submit" id="<?php echo $id; ?>"/> </form> </div> <?php } ?> </td> </tr> </table> </div> I'm currently updating some online forms using HTML. When the page is refreshed (either manually, or by pressing a button) the page redirects to the top. Is there any code that will refresh the page to the last position before the refresh. Ex: If you are half way down the page, and click an "Add" button, the page will refresh back to that same spot. Any help would be great. Thanks, Sarah I know how to have my page redirect to a different page. the problem i have is that I want somebody to go to my page, click on a link, which will bring them to a new page, have the new page open up an instant mesanger window to my screen name, and then redirect back to my main page. I have all of the code to open up the IM window, but I do not know how to get the browser to redirect after that has happened. as of now, this is my page i want to have the code to redirect to my main page on. Code: <html> <head> <title>WeirdClayJisKOOL//AIM-redirect</title> <style type="text/css">.sneaky { display: none; visibility: hidden; }</style> <script language="javascript"> function reDirect() { document.aim.submit() } </script> </head> <body onLoad="reDirect()"> <B>Generating AIM..</B> <a href=http://www.mymainpage.com><h1>Return to Mymainpage</h1></a> <form method="post" action="aim:goim?screenname=WeirdClayJisKOOL&message=Hey!" name="aim"> <span class="sneaky"><input type="submit" value="AIM"></span> </form> </body> </html> i'm not sure if this post belongs in this section because i don't know if i would use html, or javascript or what. if you are un-clear about what i want let me know and i will be glad to attemp to clearify. thank you! Hello all, I am searching for the html code that will allow me to including a moving script at the bottom of my page. appreciate any help, JJ This is really strange. If I write my code like this, --------------- <td style="height: 100% width 16px; background-image: url('widgets/gen_72.1.gif'); padding: 0px; margin: 0px; border: none;"><img src="widgets/spacer.gif" width="16" height="1" alt="widget"></td></tr> <tr><td width="16" height="17"><img src="widgets/gen_76.1.gif" border=0 width=16 height=17 alt=""></td> <td style="height: 17px width 100%; background-image: url('widgets/gen_69.1.gif'); padding: 0px; margin: 0px; border: none;"><img src="widgets/spacer.gif" width="16" height="1" alt="widget"></td> <td style="width: 16px height 17px; background-image: url('widgets/gen_75.1.gif'); padding: 0px; margin: 0px; border: none;"><img src="widgets/spacer.gif" width="16" height="17" alt="widget></td></tr></table> --------------- my page displays correctly. But if I simple move the end tags for the table like this, ----------------------- <td style="height: 100% width 16px; background-image: url('widgets/gen_72.1.gif'); padding: 0px; margin: 0px; border: none;"><img src="widgets/spacer.gif" width="16" height="1" alt="widget"></td></tr> <tr><td width="16" height="17"><img src="widgets/gen_76.1.gif" border=0 width=16 height=17 alt=""></td> <td style="height: 17px width 100%; background-image: url('widgets/gen_69.1.gif'); padding: 0px; margin: 0px; border: none;"><img src="widgets/spacer.gif" width="16" height="1" alt="widget"></td> <td style="width: 16px height 17px; background-image: url('widgets/gen_75.1.gif'); padding: 0px; margin: 0px; border: none;"><img src="widgets/spacer.gif" width="16" height="17" alt="widget"> </td></tr></table> ------------- the page adds an extra table image below the table. Just adding a space before the </td> tag throws off the results. How can this be? I've never had a web page do this before. Can someone explain this to me? It simply doesn't make sense? Am I doing something wrong that I'm not seeing? Thanks |