HTML - Timed Page Access
Hi. I'm new to web development, and since I didn't have any luck on google with this I thought I'd ask here. What I need is the ability to allow only one user to access my page at a time, with the access time tied to their account/password. This is not a general web page, and you already have to vpn to get to it so overall security isn't a big deal. The system allows remote control of a few simple machines, and currently if more than one person can get to it simultaneously the last access steals control. Anyway, heres an example:
Joe's Time: 1:00 - 3:00 M, cannot login before 1:00 and auto-logout at 3:00 Tom's Time: 3:00 -5:00 M, Bob's Time, etc.. I suspect this might require Java or something, but I don't have the first clue where to start looking. Its a windows box btw, and I don't have control of the user machines so this has to be set up for my local directory. Any hints (or free code if this is a simple/stupid question) are appreciated. Similar Tutorialshi, i have an image rotation code, but its working on switching the code on a timer, and i want it to appear randomly on the page load. anybody know how to change the code? i have the timer part of it below. thanks in advance. var interval = 1.5; // delay between rotating images (in seconds) var random_display = 1; // 0 = sequential, 1 = random interval *= 1000; Hi, I am trying to restrict access to a certain page on my website. I don't really want to set up a username and password, instead of was thinking of the following 2 things to verify. #1: would be for them to enter an email address that ends in either "@weber.edu" or "@mail.weber.edu". #2: would be for them to have to enter an identification number which must start with a "w" and must have 8 numbers after the w. No more, and no less than 8 numbers. For example: Email address: jay@mail.weber.edu Identification number: W01234567 If those two conditions are met, then they can have access to the page. Any clue how to write the code for that? Thank you very much! hi, im 13, im new to html, and im making a business site. anyway, i have the latest version of Adobe GoLive (if that helps) but i'd much prefer to use plain html code. i need a page that asks for a password and if its correct takes me to a page with stuff on it. can i have a little code plz? =) thanks Hi all I am trying to set up a custom 404 page for when a user visits a broken/error page. I have read several other pages telling me how to do it, and they all pretty much the same thing, however it isnt working. Keep getting this on the page when i enter a broken link: Not Found The requested URL /clients/index.htm was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. I have set up a ht.access text document with the following code: ErrorDocument 404 error-page.html An error-page.html page has also been created. Now, am i even naming ht.access file right? Do i need any other code in the error-page.html to make it work? im going round in circles, getting nowhere, i hope someone can help!! Hi, I am trying to set up a webpage where the only way someone can access it is if they came from my facebook page. What is the easiest way to do this? thanks in advance. ok right heres the deal, i have lots of links that i need clicking daily i use to have a site that i used for a game, the game was based on getting people to click your link, and what i did was got some code that loaded a pop up every 5 mins (this was the maximum time between clicks you were allowed) but i put many links in to click as i was a nice person and thought id help others i have found similar code and now for the life of me it wont work i know longer need it for the game, but its a similar concept, what appears to be happening is it skipping straight to pop up 2 and not loading any others Would you please read through and see whats wrong? Code: <script language="javascript"> <HEAD> <TITLE>The Official OutwarTricks.Com Thugbuilder Created By BMFSMOKE</TITLE> <META http-equiv=Content-Type content="text/html; charset=windows-1252"> </head> <BODY bgcolor="#000000"> <STYLE TYPE="text/css"><!-- body {scrollbar-face-color: #000000; scrollbar-shadow-color: #FFFFFF; scrollbar-highlight-color: #FFFFFF; scrollbar-3dlight-color: #000000; scrollbar-darkshadow-color: #000000; scrollbar-track-color: #000000; scrollbar-arrow-color: #FFFFFF; scrollbar-base-color: #FFFFFF;} --> //--></STYLE> <p align="center"><img src="bmfpic.jpg"> <CENTER> <P style="line-height: 100%"><font color="white"><b>This Is The Official OutwarTricks.Com Thugbuilder.</b></font></P> <p style="line-height: 100%"><font color="white"><b>Please Treat This As Any Other Thugbuilder Website, And Do Not Open Other Thugbuilders Or Click On Outwar Links Outside Of This Thugbuilder.</b></font></p> <P style="line-height: 100%"><font color="white"><b>To Be Added To The Thugbuilders Rotation Please Contact Me At The Following <div>Aim: <a href="aim:goim?screenname=OutwarChamp">OuTwArChAmP</a> - Outwar: <a href="http://outwar.com/sendmessage.php?name=BMFSMOKE">BMFSMOKE</a><BR></b></font></p> <P style="line-height: 100%"><font color="white"><b>NOTE: Pop-Up Blockers Must Be On Or You Will Not Be Credited With The Thugs You Deserve,</b></font></p> <P> <SCRIPT language=JavaScript> <!-- document.writeln("<form name='my_form' action=''><align=right><table border='1' bordercolor='#A5B3CA' bgcolor='#000000' cellpadding='5' cellspacing='0' width='150'><tr><td><center><font size='1' face='verdana'><input type='text' name='my_text' size='35'><br>Official OutwarTricks.Com ThugBuilder Created By: BMFSMOKE</tr></tr></font><br><font size='1' face='verdana' color='#000000'></font></a></font></center></tr></td></table></form>"); var the_minutes = [ " 2", " 1", " 0" ] ;// ** add/remove quoted numbers in this line to increase/decrease page reload time - currently set to begin at 5 minutes 01 seconds var the_seconds = [ "59", "58", "57", "56", "55", "54", "53", "52", "51", "50", "49", "48", "47", "46", "45", "44", "43", "42", "41", "40", "39", "38", "37", "36", "35", "34", "33", "32", "31", "30", "29", "28", "27", "26", "25", "24", "23", "22", "21", "20", "19", "18", "17", "16", "15", "14", "13", "12", "11", "10", "09", "08", "07", "06", "05", "04", "03", "02", "01", "00", "00", "00", "00", "00", "00" ]; var index = 0; var a = 0; var my_timer; function countDown(){ if (index <= the_seconds.length){window.document.my_form.my_text.value = the_minutes[a] + ":" + the_seconds[index] + " Minutes Remaining"; index++;}; if (index == the_seconds.length){a++; index = "0";}; if (a == the_minutes.length){window.location.reload()}; my_timer = setTimeout('countDown();', 1000)}; countDown(); //--> </SCRIPT> <SCRIPT language=JavaScript type=text/JavaScript> <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); //--> </SCRIPT> <BLOCKQUOTE> <SCRIPT> /// HERE IS WHERE YOU ADD NEW PLAYERS...Copy a string and replace the [#] and add the player's id after the x=. Leave the quotation mark./// var popunder=new Array() popunder[0]="http://www.google.com" popunder[1]="http://www.outwar.com" popunder[2]="http://www.bbc.com" popunder[3]="http://www.yahoo.com" var winfeatures="width=1000,height=800,scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=1" var once_per_session=0 ///No editing beyond here required///// function get_cookie(Name) { var search = Name + "=" var returnvalue = ""; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { // if cookie exists offset += search.length // set index of beginning of value end = document.cookie.indexOf(";", offset); // set index of end of cookie value if (end == 400) end = document.cookie.length; returnvalue=unescape(document.cookie.substring(offset, end)) } } return returnvalue; } function loadornot(){ if (get_cookie('popunder')==''){ loadpopunder() document.cookie="popunder=yes" } } function loadpopunder(){ win2=window.open(popunder[Math.floor(Math.random()*(popunder.length))],"",winfeatures) win2.blur() window.focus() } if (once_per_session==0) loadpopunder() else loadornot() </SCRIPT> </CENTER> I'd like to create a link, which I can define, when it will activate. Is there any code, where I can define every one of the links activation day? Sorry, my English isn't very good... Is it possible to make pictures pop up in the corner of the same page when the music gets to a certain point? On myspace for example, when the embedded song gets to a certain time. Hello, I am trying to design a very simple HTML game, but there are some fundamental questions which I need to resolve before I know where I need to start. I was wondering if its possible to use just HTML (running on an old computer (pentium 3 or 4) on linux) to execute commands like, loading up a random page, loading a page after a count down timer is up, loading a page when any key is pressed and being able to turn these commands on and off according to eachother.. You might be able to tell from this that I am not very experienced at all with this sort of thing.. an example: A web page is showing, the user presses any key, a random page is loaded, a countdown timer starts, the user either presses a specific key or the time runs out, the result is a new web page loading depending on the amount of time that has expired on the countdown timer, a new coundown timer starts, when it runs out the original start webpage is loaded and the loop can go on. I would really appreciate any help on this. When we use accesskey attribute we can able to use ALT+(accesskey). is there any way to define access keys for button and links should be allow us to use CTRL+ALT+(accesskey) Thanks Hi I am Ron a new member. I am using 123 reg to edit our allotment web site. Access seems to have changed and cannot get in to edit can anyone advise. Ron Can i have a code to make a password kinda thingy? i want to have some pages that you need a special password for. and how can i make the image in the search bar of my page different, is it <title image url="URL HERE"> Hello, I am trying to load an HTML page with following code snippet. The img1440.html in window.open method gives an "access denied" error when I load this calling HTML that loads the img1440.html from onclick event. HOWEVER, THE WEIRD thing is that this error only comes from IE. It works JUST GREAT on Firefox. Please help. My most of user base are is accustomed to IE so gotta live with IE. Please help. <body> <!--1 --> <div id="Div1" class="panel" style="margin-right:0.5%; margin-bottom:0.5%;" onclick="window.open('img1440.html', '','width=600px,height=200px');" > <div class="panel-label">Accounting Services</div> <ul class="block"> <!--STUFF--> </ul> </div> I am writing an "external link exit page" where anytime a user clicks on an external link in my site, it navigates to a page exit.html that says something to the effect of: "Please note that you are leaving our website, and therefore we are not responsible for the content of the website you are about to visit." I was thinking of making the destination URL be a parameter, so for example a section of links on my website might look something like this: <h3>Other Sites You Might Find Useful</h3> <a href="exit.html?url=http://www.google.com">Google</a><br /> <a href="exit.html?url=http://www.yahoo.com">Yahoo!</a><br /> <a href="exit.html?url=http://www.weather.com">weather.com</a><br /> So in exit.html I have a parameter called url that needs to be decoded and placed in my HTML source. After I display the warning message I want to give the user the option to either go back or continue to the externall url. <h3>You are now leaving our website. Please be advised that we are not responsible for the content of the website you are about to visit. </h3> <h4>Are you sure you want to continue?</h4> <a href="[URL parameter]">Yes! Continue to [URL parameter]</a><br /> <a href="javascript:history.go(-1)">No! Cancel and go back</a><br /> How do I do this? Hi All, I have few requirement for the HTML and MS Access Database Integration. 1. requirement to "register online" using HTML page however I want all the information (Name, Age, Username, Password,etc..) entered to be updated in the MS Access Database. 2. requirement to login using the HTML which can read the username/password from the MS Access Database. Can anyone give me the link to an exising source code for this requiremnet or guide me how shall I proceed? I have the HTML page ready for the registration/login and MS Access Database ready however I need to know how can I read/write from the HTML page to the MS Access Database? I am new to HTML and MS Access. Thank you all in advance for any help with my requirement. Sanjiv Hi everyone, What is the code that i will have to enter to my website so mobile phones will be able to access it? Hi, I want to download data from web but failed. I need to download some stock info (High, Low, Price ) from he http://money18.on.cc/eng/info/livein...l?symbol=00001 The problem is those data is generated thru javascript and not appearing in the html file that I've download from the above link . What I've done: 1. used Firebug to trace the js. 2. identified data is generated thru this link" http://money18.on.cc/js/real/quote/0...=1287193281904 ("00001" is the stock number and "t=128719328190" is the timestamp) 3 . used Firefox Live Http Header to trace the headers of http://money18.on.cc/eng/info/livein...l?symbol=00001 and found this (just extracted a portion of it): Code: --------------------------------------------------------- http://money18.on.cc/js/real/quote/00001_r.js?t=1287193281904 GET /js/real/quote/00001_r.js?t=1287193281904 HTTP/1.1 Host: money18.on.cc User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10 Accept: */* Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive Referer: http://money18.on.cc/info/liveinfo_quote.html?symbol=1 Cookie: m18-sHist=2930_0-566_0-5_0-3998_0-8321_0-959_0-1163_0-379_0-916_0-1_0 HTTP/1.1 200 OK Date: Sat, 16 Oct 2010 01:41:19 GMT Server: Apache/2.0.52 (Red Hat) Last-Modified: Fri, 15 Oct 2010 08:00:59 GMT Etag: "2e3922e5-be-3a1ac4c0" Accept-Ranges: bytes Vary: Accept-Encoding,User-Agent Content-Encoding: gzip Content-Length: 142 Keep-Alive: timeout=3, max=14999 Connection: Keep-Alive Content-Type: application/x-javascript ---------------------------------------------------------- 4. used the browser to go he http://money18.on.cc/js/real/quote/00001_r.js?t=1287193281904 and got "Forbidden" 5. used perl and specified those headers found in "Live Http Header" to extract the content. Still the same "Forbidden" Do you have any solution to download those data? Thanks! Hi All... I'm building a website in Dreamweaver 8. I have one layer in the site that contains a form field for collecting email addresses. The layer is placed on top of an image. When I horizontally resize my browser window the layer moves. When I resize the browser vertically it stays in place. I've tried switching the layer properties from relative to absolute and back again but it doesn't make a difference. Could someone please have a look at the page and see if they have any suggestions? The link is http://www.sweetdivinemusic.com/storycollective This is the last piece I need to fix before taking the site live. Thanks a ton folks! Robert Is it possable to conect to a db without serverside script? My website is in asp but I would like to rebuild it. Is there a way to connect using xhtml. The one thing I really like is every part of my website is dependent on my db. That makes it really easy to admin but makes it stuck on one layout unless I rewite the whole site. Even java script would do. I want a site that gets away from asp and/or php but I am reluctent to give up my db. Hi, On my page I have a frame. This frame loads an external page, which has a function, Enter(), which I want to call. How do I access this function? I've tried HTML Code: document.getElementById("frame1").document.Enter() and HTML Code: document.getElementById("frame1").Enter() , but both do not work. What am I doing wrong? Here's my code: HTML Code: <html> <head> <script type="text/javascript"> function go() { document.getElementById("frame1").document.Enter(); //alert('understood'); } </script> </head> <frameset id="frameset1"> <frame id="frame1" name="frame1" border=0 src="http://somepage.com" scrolling="no" /> </frameset> </html> Thanks, WhiteAvenger |