Register | Login | |||||
Main
| Memberlist
| Active users
| ACS
| Commons
| Calendar
| Online users Ranks | FAQ | Color Chart | Photo album | IRC Chat |
| |
0 user currently in Programming. | 3 guests |
Acmlm's Board - I2 Archive - Programming - HTML questions | | | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
User | Post | ||
Stifu Level: 28 Posts: 74/304 EXP: 129458 For next: 1880 Since: 03-16-04 From: Your mom's bed Since last post: 18 hours Last activity: 11 hours |
| ||
Yo. I got 2 questions... 1- Is it possible to prevent people from being able to open something in a new window ? I got right click disabled on some pages, but people can still click on the link while pressing shift... 2- Is it possible to force the loading of an image even if it's not displayed (yet) ? Here's my problem... I got an image button, when you click it, the image changes for a second. Although on my computer (and on a lot of other comps I guess), the 2nd image doesn't appear long enough to get displayed. So when you click the button, it just disappears for a second, then comes back as normal (1st image). I was wondering if I could somehow force the 2nd image to get loaded in the temp files of the visitors before they can click the buttons, so the 2nd image always shows when it's supposed to afterward. Thanks. |
|||
Modereb Paragoomba Level: 15 Posts: 11/75 EXP: 14749 For next: 1635 Since: 06-04-04 Since last post: 350 days Last activity: 339 days |
| ||
1. I think there are Javascripts to prevent stuff like that, though, you'll never be able to completely hide or prevent something from being seen/happening on a normal HTML page. There are Javascript functions to disable the functions of specific buttons (though, if you make that, you'll have to program them so that they work regardless of browser and operating system, which is a shitload of work for even the tiniest scripts). My recommendation is not to try to tweak around with stuff like that, people WILL find backdoors. 2. You can preload an image by puttnig the following Javascript in the <head> section: <script type="text/javascript"> mouseoverimage=new Image(); mouseoverimage.src='url/to/image/you/want/to/preload.jpg'; </script> If you want to preload multiple images, you can simply do the following: <script type="text/javascript"> mouseoverimage=new Image(); mouseoverimage.src='url/to/image/you/want/to/preload.jpg'; mouseoverimage2=new Image(); mouseoverimage2.src='url/to/image/you/want/to/preload2.jpg'; </script> Etcetera. |
|||
Stifu Level: 28 Posts: 75/304 EXP: 129458 For next: 1880 Since: 03-16-04 From: Your mom's bed Since last post: 18 hours Last activity: 11 hours |
| ||
Thanks for all of that. Yes, I know people will find backdoors and stuff, but I just wanted to make the page "clean"... And it'd potentially stop more people from messing with my stuff, too. Anyway thanks to Parasyte's script, people shouldn't be able to leech my files at all, which is the main thing. Thanks again, gonna try that preload thing now... |
|||
Vystrix Nexoth Level: 30 Posts: 170/348 EXP: 158678 For next: 7191 Since: 03-15-04 From: somewhere between anima and animus Since last post: 3 days Last activity: 2 days |
| ||
why prevent loading new browser windows? that's just irritating, especially to someone like me; I regularly open new browser tabs when looking through a site. (BTW, I do that using the middle mouse button, in Mozilla Firebird). when designing a web page, you are merely providing suggestions on how the site should operate (look, work, etc) on the client's computer. in the end, the client ought to have the final say. trying to take away the client's ability to interact with the site in whatever way he/she sees fit* is a Bad Thing, which in my opinion ranks right up there with pop-up advertisements or ok/cancel "vote for me" boxes. it'd be like being forced to put on a pair of handcuffs while at the site. I'm saying these things as a fellow web designer, not just as a user. and like modereb said, people will find backdoors. the thing is, people shouldn't have to*. * except for something which could cause harm to you and/or the server on which your site is hosted; such as DoS attacks or stealing content. |
|||
Stifu Level: 28 Posts: 76/304 EXP: 129458 For next: 1880 Since: 03-16-04 From: Your mom's bed Since last post: 18 hours Last activity: 11 hours |
| ||
This is only for file downloads, it's useless to open a new browser in this situation... I just wanted my image button to behave like a *real* button, just like the "Submit reply" or "Preview reply" I can see as I type this... |
|||
DarkSlaya POOOOOOOOOOOORN! Level: 88 Posts: 201/4249 EXP: 6409254 For next: 241410 Since: 05-16-04 From: Montreal, Quebec, Canada Since last post: 8 hours Last activity: 5 hours |
| ||
Never use Javascript to protect something. Html can't protect/prevent doing something. Javascript shouldn't be used for protection. |
|||
Stifu Level: 28 Posts: 77/304 EXP: 129458 For next: 1880 Since: 03-16-04 From: Your mom's bed Since last post: 18 hours Last activity: 11 hours |
| ||
Yes, I guess... However, yet again, the main point here wasn't to protect anything. But maybe I should redo my site in PHP or something someday, for more flexibility... |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
Acmlm's Board - I2 Archive - Programming - HTML questions | | | |