Jump to content


Photo

Can someone do this for me? Check for browser.


  • Please log in to reply
4 replies to this topic

#1 Nothadoth

Nothadoth
  • Members
  • PipPipPip
  • Advanced Member
  • 119 posts

Posted 12 July 2006 - 08:54 PM

For some reason and I dont know why it messes my site up in firefox browsers. So i would like a script to check if the user is using Firefox to warn them. Can this be done?

Thank you.

#2 brown2005

brown2005
  • Members
  • PipPipPip
  • Advanced Member
  • 943 posts

Posted 12 July 2006 - 09:00 PM

wats the url so i can check

#3 avo

avo
  • Members
  • PipPipPip
  • Advanced Member
  • 148 posts
  • Locationstaffordshire uk

Posted 12 July 2006 - 09:02 PM

hi

i would check you html a good plugin for firefox is called IE Tab within firefox you have a new tab in the tool bar click this and switch between ie and firefox

very usefull exstension to have for development

Hope this helps
Im loving it ........

#4 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 12 July 2006 - 09:09 PM

Please post a URL (or code) so we can see what you mean. You should be able to make a site appear almost identical between IE & FF. This can be tricky if you use CSS, but it can be done.

Ken

#5 ShogunWarrior

ShogunWarrior
  • Members
  • PipPipPip
  • Advanced Member
  • 528 posts
  • LocationIreland

Posted 12 July 2006 - 10:48 PM

This should work nicely:

<?php
if(preg_match('/firefox/i',((isset($_SERVER['HTTP_USER_AGENT']))?($_SERVER['HTTP_USER_AGENT']):(''))))
{
        //Firefox only code
}

<a href="http://www.daviddora...nmedia.com/">My New Site/Blog</a> | <a href="http://www.daviddora...m/check/">Check your page for broken links/images/scripts</a>

Zend Certified Engineer
Follow me on Twitter: http://twitter.com/davidd




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users