Does anyone have a good and simple Low/High bandwidth detection script that either redirects the user to a page based on their bandwidth or which sets a variable that can be used to turn on/off media and content?
I have some webspace and have a bandwidth restriction as we all do. I have been trying to create a script that will do the following as I have subdomains/directorys for users other than my self.
When pages load from a subdomain/directory the amount of transfer used is recorded in a text file like a page counter.
every page on this subdomain/directory adds the amount of bandwidth used.
If the bandwidth is exceeded then a message is displayed in plain text saying so.
I would like to have this script work with the folowing amounts.
I'm going to go down this route of Cookie detection
<%
If Request.Querystring("Check") = "" Then
Session("cookietest") = "True"
Response.Redirect("cookietest.asp?Check=True")
Else
If Session("cookietest") Then
<!-- Execute code if enabled -->
Else
<!-- Execute code if disabled -->
End If
End If
%>
I’m a little worried, do you know how spiders work with regards to this sort of thing? My site gets some traffic due to it being spidered by the likes of google and I don’t want to loose that flow.
If I use this at the entry point of my site to redirect browsers with cookies turned off to a page telling them to turn them on will that stop the spiders?
I have just uploaded my website and it looks fine in IE, but awful in Mozilla. I need to load a different CSS file according to what browser a user has. Does anyone have any code that will detect browsers and versions?
I have a piece of ASP code that I want to run differently if it is on my development server.Basically, if it's on my server I just want it to do a few response.writes... If it's on another server I want it to send an email.Right now I have code to do both, but it's a pain to flip flop between them. Is there a simple way to accomplish this?
I am running an asp script (form submitting to database). After the db entry I want to re-direct the users to one of 3 pages depending on which browser they are running .. Internet Explorer, Netscape 4.7 or Netscape 6 or higher (since I am using embedded video feedback with CSS and dhtml....and all these brpwser handle things differently (ie. Netscape 6+ does not understand the <embed> tag or at least won't let me manipulate the video.) I can do it in javascript but how does one go about this in an asp script?
Is there a way to detect that my ASP is going to display in a frame? Everything I've found tells me how to test if the browswer is frame capable. I know HTTP_REFERER is a big hint but it isn't very authorative. I can do this easily in javascript but that is of little help while I'm still running on the server.
What I want to do is check to see if I am executing in my frame. If not then load the frame then execute. Everything I can think of to do is either too late or unreliable.
How can I detect what browser type my users are using, currently with my asp server variables I only detect Netscape and Mozilla as U, how can I get specific information without having to use software that you must pay for?
I have an photo gallery, I want to create a button that opens a new window fixing the full size image snugley in it, which is easy.
But I want to get a script which detects the image size so i can use the variables to open the window.
What i want to not do is have to more options in the database with height and width in, and have to call them, although i'll do that if i have to, but i thought i would try something new.