Jump to content

p4c

Member
  • Posts

    5
  • Joined

  • Last visited

p4c's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. check this out also. http://www.killersites.com/forums/topic/2731/firefox-google-chrome-browser-detecion-using-conditional-comments-hack/
  2. i realize that the comments are not correct. I have a few questions, first, why is IE parsing the !IE content. but not the IE content. saecond why wont it work if i remove the . that i put in there or the first IE CC? the whole thing is bizarre, im just trying to figure how & why it works? It probably wont validate, and i usually am very standards compliant, im just trying to figure this out.
  3. can someone please tell me why this is working? I figured it out by accident, and have no idea what the heck is going on here? This works in chrome, IE, and firefox; can someone tell me why? If you remove from the body the element from the second CC or the first CC then the whole thing doesn't work in IE, what is so special about that "." and that "ghost" CC that does nothing? I am very confused on this, any help would be appreciated. im using win vista/xampp/ie7, chrome, firefox; (for those who migt try replicating this oddity?) my file is as follows: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ =================================================================================== this is the contents of hed.php that is being called here: <?php $msgr = " document.write(' some title . var newcontent = document.createElement('div'); var scr = document.getElementById('syndication_no'); newcontent.id = 'outside_content_container'; newcontent.appendChild(document.createTextNode('Here is some syndicated content.')); scr.parentNode.insertBefore(newcontent, scr); // simply a confirmation that the div was constructed if(newcontent.id = 'outside_content_container') alert('The Div with the Id: ' + newcontent.id + ', has been built!');
  4. I have a need to do a few things first i wanted to be able to send php code to multiple browsers but not the same code. I ran into a problem with this and on top of that, i wanted to send multiple stlyesheets to different browsers. CC's worked for the second task but I had to make a few "new" hacks to get them to serve my purposes with PHP. These "hacks" that i have created are designed to target 3 browsers, and differientiate between the 3. 2 of which are not IE, meaning firefox, and Google Chrome; using these following "hacks" in conjunction with a "" allows one to distinguish and pass different (x)HTML, CSS and PHP data to the browsers. I have these set up in a seperate php file than the actual "index" file of the webpage and they are included by employing a SSI. Below is a copy of that file. Detect IE, firefox and chrome hacks by : p4c - nick gibson i hope these will be some help and service to others. they are for me. -------------------------------------------------------------here is the file---------------------------------------------------------------------- ________________________________________end of file__________________________________________________ it is my hope that these will perhaps suppliment the * html hack that no longer works, due to IE7. another thing is that chrome doesnt like background-image styles from imported sheets, but if you append the holy * html hack like so the issue goes away. /* Hides from IE5-mac \*/ * html body{height: 1%;} /* ENABLES CHROME TO BE CSS2 COMPLIANT */ /* End hide from IE5-mac */ good day, and god bless -- keep coding keyboard samuris
  5. I have a need to do a few things first i wanted to be able to send php code to multiple browsers but not the same code. I ran into a problem with this and on top of that, i wanted to send multiple stlyesheets to different browsers. CC's worked for the second task but I had to make a few "new" hacks to get them to serve my purposes with PHP. These "hacks" that i have created are designed to target 3 browsers, and differientiate between the 3. 2 of which are not IE, meaning firefox, and Google Chrome; using these following "hacks" in conjunction with a "" allows one to distinguish and pass different (x)HTML, CSS and PHP data to the browsers. I have these set up in a seperate php file than the actual "index" file of the webpage and they are included by employing a SSI. Below is a copy of that file. Detect IE, firefox and chrome hacks by : p4c - nick gibson i hope these will be some help and service to others. they are for me. -------------------------------------------------------------here is the file---------------------------------------------------------------------- ________________________________________end of file__________________________________________________ it is my hope that these will perhaps suppliment the * html hack that no longer works, due to IE7. another thing is that chrome doesnt like background-image styles from imported sheets, but if you append the holy * html hack like so the issue goes away. /* Hides from IE5-mac \*/ * html body{height: 1%;} /* ENABLES CHROME TO BE CSS2 COMPLIANT */ /* End hide from IE5-mac */ good day, and god bless -- keep coding keyboard samuris
×
×
  • Create New...