Jump to content

seeking help deploying vbscript


dev
 Share

Recommended Posts

To,VBScript experts,Just new to VB codes. I need your guidance. Actually i want to trigger a specific file for specific screen resolution to let my visitors get a perfect match webpage as their settings. To do this i'v discovered a VBcode which reads:

Sub window_onloadif screen.height < 768 Thendocument.write ("Resolution is less than 1024") // here i will direct to an asp fileEnd ifif screen.height >= 768 Thendocument.write ("Resolution set to 1024") // here i will direct to an asp fileEnd ifEnd Sub
Its working very fine and i want to use this code to my home page. Thus, i've to think for its compatibility. So my questions are:1. As i'm using this code to my home page how widely this code is compatible with web browsers?2. How web spiders, crowlers and robots will act to this code?Please make me aware of if there is any other issues i am missing to and which is important. If this code need some manupolations please do it for me. Waiting for your reply.With thanks,dev
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...