Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - HTML questions
  
User name:
Password:
Reply:
 

UserPost
Stifu
Posts: 77/304
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...
DarkSlaya
Posts: 201/4249
Never use Javascript to protect something. Html can't protect/prevent doing something.
Javascript shouldn't be used for protection.
Stifu
Posts: 76/304
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...
Vystrix Nexoth
Posts: 170/348
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
Posts: 75/304
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...
Modereb
Posts: 11/75
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
Posts: 74/304
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.
Acmlm's Board - I2 Archive - Programming - HTML questions


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.009 seconds.