<%@ Language=VBScript EnableSessionState=False %>
<%Option Explicit%>
<% Response.Buffer = True
Response.Expires = 0 'Prevents caching of the content
%>
<%
Dim strScripts
Dim ipsp, iFNum
Dim fso, file
Dim strReferer
Dim bRM = False
Dim Scripts(13)
Scripts(0) = "Script1.js"
...
Scripts(13) = "Script13.js"
strReferer=Request.ServerVariables("HTTP_REFERER")
'compare referer to the address of the page that uses the
'scripts and continue only if matches. This will allow access
'only by your file
strScripts=Request.QueryString("Scripts")
set fso = Server.Createobject("Scripting.FileSystemObject")
While Len(strScripts) > 0
ipsp = InStr(1,strScripts,",")
If ipsp = 0 Then
iFNum=CInt(strScripts)
strScripts=""
Else
iFNum=CInt(Left(strScripts,ipsp-1))
strScripts = Right(strScripts, Len(strScripts) - ipsp)
End If
set file = fso.opentextfile(Server.MapPath(Scripts(iFNum)), 1)
Response.Write(file.ReadAll)
file.close
set file = nothing
Wend
set fso = nothing
%>
Hope this will extinguish some of the code protection debates. If you see holes in the suggested approach let me know. It still does not protect from net traffic sniffers ....
I made a form, but I don't want just anyone to be able to use it. So I was wondering if it was possible for the page to check if they were logged into my forum.
I website I've seen recently uses a clever technique, which I'm still working to figure out. When you go to view an image, a pop-up window opens -- the image is downloaded (non-cached) and then some javascript (presumably) loads a replacement image in its place (it's not displayed) -- when you go to save it, you get the dummy image.
Further, they make some javascript call (presumably, or jquery) to replace the document content of that page, so when you do a View Source, you get something totally different.
How this is actually working, and whether something like that could be cross-browser supported.
I have designed a template for a script in html and planning to sell it, but i am too concerned with piracy because i need money urgently for my further studies and piracy will ruin it,
So is there anyway you can suggest from protecting it?
The 1 way i have in mind is the first time the template loads it send the domain name using the template to my site and automatically placing a php file in another directory so that if i find the user malicious (using the pirated copy) i can disable the template and request him to buy a legitimate copy.
And can that javascript be divided into parts? like 1 part in header another in body and so on, so that it is hard to find the code.
I know there is no 100% full proof way of securing but having done little from our side can also help us avoid few pirate's .
If you click on 'Tide' you can see the password prompt appears. But the problem I am having is that even if you press cancel or do the wrong password a few times it still open up the shadow box.
This is the script for the password protection
This is an example of how a working (non shadowbox) version works successfully.
I am trying to prevent an email address from being spammed as spammers use spidering tools to scan the internet for exposed email addresses in plain text.
I am using a technique and I'm not sure whether it will deter spam bots.
I have an external Javascript file with the following variables:
var usr = "mark"; var at = "@"; var domain = "fullmarksdrivingschool.co.uk";
[Code].....
When I open the web page in a browser the email address displays correctly but does this technique work to prevent spammers from indexing the email address?
I'm working on a project that requires files to be password protected on a UNIX based site. The people that own the web site want to be able to change the password every so often. Unfortunately, I have restricted access only to FTP so I really can't log in to any kind of Administrative Console or Admin Panel and see if there are folders that can be password protected and then have passwords changed on them. The people I'm contracted to work on the site for aren't the most computer savvy people though....so..my question is:
Is there a user friendly way of password protecting a folder on a UNIX based site?
I need to create a Javascript and when the output is printed, I need to control the margins of the printed page very strictly, can Internet Explorers version of CSS do this? Or is there another solution?
How can i override all the styles being cascaded applied to some HTML element?
For example:
I have a stylesheet where DIV styles are described DIV { padding: 10; margin: 10; }
and have HTML code:
<DIV><DIV style="override:all">Test</DIV></DIV>
I would like to not have the inner DIV padding, margin and other directives described in styles above. Actually I would like to discover some directive line "override:all"!
in my javascript, when i alert the value of (document.getelementbyId('inner')).style.display, I get blank value. when i do the same for outer div, then i get value block. however inner div is inheriting style from its parent. i need to add some specific handling in case style of inner div is block, whether explicit style or computed style. i cannot do the check on its parent's style as it might not always be immediate parent.
I seem to remember being able to do this, but I can't seem to find out how I did it before...
Basically, I have styles defined by class in a stylesheet, and I need to read the "width" style. obj.currentStyle.width works just fine in IE, but Firefox doesn't recognize it.
document.defaultView.getComputedStyle(obj,null).ge tPropertyValue('width') gives me the actual width (just as obj.offsetWidth does), not the width style assigned by the stylesheet.
Because the elements are cells in a table row, the rendering of the table is causing the actual width to vary from the assigned width style. So, how can I get the assigned width style in Firefox (and other browsers)?
i have a jquery slider, and jquery tabs on one page....i dont want the tabs to have the theme the slider does...is there a way to set the tabs to not use the theme style, on the
I displaying mysql data in a webpage using div's and tables. Each row of data has 4 div's, and a certain style. The 4 div's will be repeated for each row of the query result. I want to repeat the style for each set of div's as they are created. I imagine this would/could be achieved using and array of style id's such as: ID1a, ID1b, ID1c, ID1d ID2a, ID2b, ID2c, ID2d etc, etc.... How can I create/repeat these style ID's as I create/repeat the div's?
I'm currently moddifying a simple menu tree script, into a way of showing more info, when clicking a headline. It is beginning to work allmost a i want i to, but when i use my own stylesheet, the area of the menutree is shown as a table.
I'm programming a styles generator for the Stylish add-on. What I want is the same thing that when I click on the button "Install with Stylish" : A Window appear to ask user if he wants to install the script with Stylish. I saved the website page on my desktop and opened it. Obviously it did not worked, nothing happens when i click. I also changed the path for javascript file in the html and so on.. There is a XMLhttprequest() function wich opens the url of the style ending by ".css". But I replaced the url by my file path (by a locally file) and I replaced the statut (200 by 0, because I'm working on a local file).
But whatever I do, nothing happens when I click. There is also a function called firecustomevent() who creates the event, but my knowledges are limited at this point. I read document on mozilla website on how to call an event but i can't get it to work. How to display a windows asking the user if he wants to install the style. The url containing the javascript is a simple style url like this one : [URL] where you can see the "install with stylish" button. I also attached the concerned javascript in a txt file.
i'd like to have it so that when stream, playlist, etc... are clicked, the button currently using the #activebutton style changes into #navbutton, and the button clicked changes from #navbutton to #activebutton.
Also, clicking the button will change the z-index of a box containing each particular categories content so that it pops to the front, although i have not tried implementing that part yet. (<-- is there a better way to do that? just wondering).
Anyway, i've been trying to teach myself what to do with the javascript. i can get the activate() function to work if no deactivate() function is defined, but it will only work for one button and then that's it. any ideas?
I have a div tag, I want to print the content of it. I have done it using Java Script, but I am not getting the styles applied to different texts or textboxes into printout. I want to get the print with CSS styles. How to do it using Java Script?
"Tester" is the id of a div with it's visibility set to visible. No matter what, though, I always get "Else" returning. Do I have a syntax error with the above, or is what I'm trying to do not possible at all??
I'm a little stuck on changing the properties of the a couple of items, here's a look[code]...
I simply need the following css selectors: #menu ul#item1, #menu ul li.item and #menu ul li.item a to change their properties from display:none to display:block in the function toggle under the (feat == "show_menu") condition.