matthewb
01-17-2003, 03:34 PM
I am attempting to create a time limited ‘evaluation’ website. It self-destructs (kind of) after a preview period.
-------------------------------
SUBSEQUENT INSERTION
I think in this post I both rambled a bit, and made myself unclear. You might do better to skip to the fourth post down (me again), where I re-explain myself, hopefully more effectively...
-------------------------------
I wish to make use of JavaScript to fire a date and time activated page change, so that after a certain date the page would become unusable (to anyone with the right date). I have found some coding that would enable a different page *redirect* based on date, but I would specifically like to change something within the page itself.
The idea is to create a series of pages with the time-activated-change script in place. The site would then be ‘encrypted’ using a piece of web protection software, so that it is still *viewable*, but not *editable* by any normal mortal. The files would then be delivered to the potential ‘client’ but the pages would only work until the date specified in the script. After this date the pages would screw up in some way.
To give some specifics:
1) I’d really like the full code, and some dimbo-proof instructions. I’m not really much cop with JavaScript I’m afraid.
2) The change in the page should be activated at a certain day (1-31), month, year and hour, minutes. This date and time should be able to be set (fairly easily) within the code.
I have come up with some ideas as to how to mess up the page after the date has lapsed. Some of these ideas may be almost wholly unviable. I would like to avoid a script that requires widespread changes to existing tags/code within the page. If the script allowed a choice between a mess-up-function that looks ‘accidental’ and one that is a clear message that the site has expired that would be good. Very good even :)
This is starting to sound like I’m rambling. I do hope I’m not, and that you’re still with me.
Mess-up ideas:
1) The page constantly refreshes/forwards to itself each second so that it can never fully load (this sounds viable *to me*, and would be quite satisfactory. The other ideas are just fancier ;)
2) Omits all usual page content and instead displays a short HTML-formatted mini-page that explains the site has expired (the mini-page should be changeable, but coded within the main page. Eep!)
3) Paragraph and break tags become invalid (so it screws the formatting) (I’m guessing this is impossible without changing every tag, right?)
4) All text and the background of the page becomes white (I’d rather not use CSS to enable this though – if it means changing the main page)
5) All pictures ‘fail’ (ie. you get the nasty red cross – though this wouldn’t be any good if they could just move the images to a different folder to make the site functional again)
6) Perhaps a little evil but I know there’s a script about that makes a computer crash if you right click on the page. An adaptation could be employed to crash the computer as soon as the expired site was loaded. I don’t know; maybe that’s too harsh. :P
Well, there we go. That’s about it. I think it’s quite a nice idea, but to someone with as little idea of coding as me, quite boggling.
That’s it. I’ll be interested to see what you guys make of it. Cheers :D
Matthew
*baited breath*
-------------------------------
SUBSEQUENT INSERTION
I think in this post I both rambled a bit, and made myself unclear. You might do better to skip to the fourth post down (me again), where I re-explain myself, hopefully more effectively...
-------------------------------
I wish to make use of JavaScript to fire a date and time activated page change, so that after a certain date the page would become unusable (to anyone with the right date). I have found some coding that would enable a different page *redirect* based on date, but I would specifically like to change something within the page itself.
The idea is to create a series of pages with the time-activated-change script in place. The site would then be ‘encrypted’ using a piece of web protection software, so that it is still *viewable*, but not *editable* by any normal mortal. The files would then be delivered to the potential ‘client’ but the pages would only work until the date specified in the script. After this date the pages would screw up in some way.
To give some specifics:
1) I’d really like the full code, and some dimbo-proof instructions. I’m not really much cop with JavaScript I’m afraid.
2) The change in the page should be activated at a certain day (1-31), month, year and hour, minutes. This date and time should be able to be set (fairly easily) within the code.
I have come up with some ideas as to how to mess up the page after the date has lapsed. Some of these ideas may be almost wholly unviable. I would like to avoid a script that requires widespread changes to existing tags/code within the page. If the script allowed a choice between a mess-up-function that looks ‘accidental’ and one that is a clear message that the site has expired that would be good. Very good even :)
This is starting to sound like I’m rambling. I do hope I’m not, and that you’re still with me.
Mess-up ideas:
1) The page constantly refreshes/forwards to itself each second so that it can never fully load (this sounds viable *to me*, and would be quite satisfactory. The other ideas are just fancier ;)
2) Omits all usual page content and instead displays a short HTML-formatted mini-page that explains the site has expired (the mini-page should be changeable, but coded within the main page. Eep!)
3) Paragraph and break tags become invalid (so it screws the formatting) (I’m guessing this is impossible without changing every tag, right?)
4) All text and the background of the page becomes white (I’d rather not use CSS to enable this though – if it means changing the main page)
5) All pictures ‘fail’ (ie. you get the nasty red cross – though this wouldn’t be any good if they could just move the images to a different folder to make the site functional again)
6) Perhaps a little evil but I know there’s a script about that makes a computer crash if you right click on the page. An adaptation could be employed to crash the computer as soon as the expired site was loaded. I don’t know; maybe that’s too harsh. :P
Well, there we go. That’s about it. I think it’s quite a nice idea, but to someone with as little idea of coding as me, quite boggling.
That’s it. I’ll be interested to see what you guys make of it. Cheers :D
Matthew
*baited breath*