forward browser script |
Author: |
Message: |
DJKAL
Senior Member
   

Posts: 800 Reputation: 14
34 / / –
Joined: Oct 2005
|
O.P. forward browser script
i am starting a website for my cousin tonight and i have a logo wich i want to have transparency - no problem. though in IE it doesnt view properly - problem solved, i matched the gradient and it is ok. though in firefox it isnt
can someone please give me a script to make the browser forward the page viwer to a differnet page if they are viewing in firefox as aposed to those viewing in IE
can someone please help, this is not for me - it is for my cousin and all women out there
"You don't sleep, you defragment!"
|
|
05-12-2006 10:37 PM |
|
 |
rav0
Veteran Member
    

i have an avatar
Posts: 1418 Reputation: 29
35 / / 
Joined: Aug 2003
|
RE: forward browser script
I'd use a ready-made server side script to detect Internet Explorer (find one), then serve the same page, with just the different logo served for Internet Explorer.
There are also JavaScript scripts which can have Internet Explorer display alpha-channel PNGs correctly, which might be better.
I can help you more if you want.
| ![[Image: dorsh]](http://tinyurl.com/dorsh) |
(\ /)
(O.o)
(> <)
This is Bunny. Copy Bunny into your signature to help him on his way to world domination
|
|
05-12-2006 11:39 PM |
|
 |
DJKAL
Senior Member
   

Posts: 800 Reputation: 14
34 / / –
Joined: Oct 2005
|
O.P. RE: forward browser script
thanks, i was thinkin of using JavaScriptbut not sure of the code.
the site (at the moment - i have bought her a domain and once set up on my hosting will be changed) is www.calumsdiscos.co.uk/shiv
in internet explorer it displays perfectly but firefox shows the colours differently. i can use transparency to solve that but need a way to get the website to detect firefox then forward the user to a similar version of the website though different images (such as: www.firefox. (her domain here).co.uk ) but i need a way to detect firefox and forward it to that link
"You don't sleep, you defragment!"
|
|
05-12-2006 11:44 PM |
|
 |
Plik
Veteran Member
    

Posts: 1487 Reputation: 46
35 / / –
Joined: Jun 2004
|
RE: forward browser script
IIRC, IE renders the colours of a png slightly differently to everything else (god knows why, perhaps something todo with ignore alpha channel data).
So, you have two options, either stop using png, and use a different format, or use some php code to detect the browser (using the useragent) and display a different image depending on what the browser is.
Don't build two different sites, just have two versions of the image, and simply output different html.
Google for "php browser detect" or something along those lines for some code 
|
|
05-13-2006 12:28 AM |
|
 |
rav0
Veteran Member
    

i have an avatar
Posts: 1418 Reputation: 29
35 / / 
Joined: Aug 2003
|
RE: forward browser script
Ummm ... what was wrong with just using text? Does it really need to be in a image?
PNG in Windows IE is the website which explains the PNG problem and has the workaround script, with good instruction on how to use it. It makes PNGs with alpha channel work properly in Internet Explorer versions 5 and 6. It will let you use the image that you were first using, and have it work properly in most browsers. I'd use this method. I can help you put it into the website.
If you want to use different images, then you should give special images to Internet Explorer versions 5 and 6 only, because they have the problem. Give Firefox and other browser normal images (with transparency). I can make a script for this if you want.
| ![[Image: dorsh]](http://tinyurl.com/dorsh) |
(\ /)
(O.o)
(> <)
This is Bunny. Copy Bunny into your signature to help him on his way to world domination
|
|
05-13-2006 12:52 AM |
|
 |
ShawnZ
Veteran Member
    

Posts: 3141 Reputation: 43
32 / / 
Joined: Jan 2003
|
RE: forward browser script
make sure you choose "save gamma" when saving the png
Spoiler: the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
|
|
05-13-2006 03:51 AM |
|
 |
DJKAL
Senior Member
   

Posts: 800 Reputation: 14
34 / / –
Joined: Oct 2005
|
O.P. RE: forward browser script
quote: Originally posted by rav0
I can make a script for this if you want.
if you would i would be real greatfull and my cousin will be too.
quote: Originally posted by rav0
Ummm ... what was wrong with just using text? Does it really need to be in a image?
it was not my choice - my cousin wanted it like that, that's just for the first page where you click "enter" to get into the site so in the site i will use text and not all the images, but none of this is my choice - all hers.
"You don't sleep, you defragment!"
|
|
05-13-2006 05:48 AM |
|
 |
segosa
Community's Choice
    
Posts: 1407 Reputation: 92
Joined: Feb 2003
|
RE: forward browser script
Tell her that when people visit webpages they actually expect to see a website, not an entry page causing them to have to click somewhere again before they can even get to where they were going.
The previous sentence is false. The following sentence is true.
|
|
05-13-2006 06:04 AM |
|
 |
DJKAL
Senior Member
   

Posts: 800 Reputation: 14
34 / / –
Joined: Oct 2005
|
O.P. RE: forward browser script
i know this, and did mention it to her but a lot of other sites have it and sh is just etting it to a style she likes and that will attract the other women (to her website not to her ...)
and though this page can be annoying on times it creats an ammediate impact and i am just creating what she wants
"You don't sleep, you defragment!"
|
|
05-13-2006 06:07 AM |
|
 |
Chestah
Veteran Member
    

Posts: 1653 Reputation: 34
36 / / –
Joined: Jun 2004
|
RE: forward browser script
quote: Originally posted by segosa
Tell her that when people visit webpages they actually expect to see a website, not an entry page causing them to have to click somewhere again before they can even get to where they were going.
Sadly not everyone thinks that way seg. Personally my favourite is when you click a link and then you get redirected to an advertisement page before the actual page you want to see  .
|
|
05-13-2006 06:57 AM |
|
 |
Pages: (3):
« First
[ 1 ]
2
3
»
Last »
|
|