HTML - Conditional Comments And Dreamweaver
HTML Code:
<!--[if IE]> <div id="header"> <table align="center"><tr> <td align="center"><span class="chosen">< Home</span></td> <td align="center"><a class="nav" href="NewsReviews.html" title="news">< News & Reviews</a></td> <td align="center"><a class="nav" href="Gallery.html" title="Gallery">< Gallery</a></td> <td align="center"><a class="nav" href="http://musichasm.freeforums.org/" title="forums">< Forum</a></td> <td align="center"><a class="nav" href="HelpContact.html" title="contact">< Contact Us</a></td> <td align="center"><a class="nav" href="Underground.html">< Underground</a></td> </tr></table> </div> <![endif]--> <!--[if ! IE]>--> <div id="header"> <span class="chosen">< Home</span> <a class="nav" href="NewsReviews.html" title="news">< News & Reviews</a> <a class="nav" href="Gallery.html" title="Gallery">< Gallery</a> <a class="nav" href="http://musichasm.freeforums.org/" title="forums">< Forum</a> <a class="nav" href="HelpContact.html" title="contact">< Contact Us</a> <a class="nav" href="Underground.html">< Underground</a> </div> <!--<![endif]--> That is my coding for a CSS menu which fixes a 'ghost text' bug in IE 6 and lower... It produces the proper result in IE, FF, and Opera, but the only problem is that dreamweaver sees them both as comments, and does not display it in design view....I just upgraded to CS3, but MX and 8 both showed the menus....any ideas? Similar TutorialsHi I am using a conditional comment on a website to load a css sheet for IE6 and below <!--[if lte IE6]> <link href="expleonardo.css" rel="stylesheet" type="text/css"> <![endif]--> In IE6 it loads the sheet and does what I want it to do but the following: <!--[if lte IE6]> <![endif]--> shows at the top of the page on a white line. The website address is www.errolsimprov.co.uk/leonardo/index.htm Any help would be greatly appreciated. Thanks John I want to use conditional comments to load a style sheet for IE7. The site im designing for is : www.efficient-heat.net When I check the site in IE7 I see images for the content area being placed incorrectly. They are over to the right of the page when they should be in the middle. When I check the images with IE dev bar they have a position of absolute. However the ie_7style.css sheet has them with a position float left. When I link to the ie7style.css without conditional comments and load the page it works as intended. I believe the absolute positioning is coming from the style.css sheet which is intended for Firefox. It seems to me that the ie7style sheet isn't being implemented properly and is relying somewhat on the style.css to render the page. How do I resolve this problem? How can i insert the comments in HTML Hi New to the forum, but think this might be the place for questions like this.. :-) Have a problem with a facebook statement I'd like to use in my learning-project to handle comments etc. The commenting module is workin perfect, but the statement to get the number of comments have problems in IE-browsers prior to v9. Probably I'm doing something wrong in the wrapping, but I need someone to tell me what... The statement should according to FB be pronounced like: Code: <fb:comments-count href=http://example.com/></fb:comments-count> And the result should be a number (stating the number of comments) In my site I've wrapped the statement in a number of span's like this: Code: <span style="float:left">Denna post har </span> <span style="float:left"><fb:comments-count href='www.hvid.nu/patricks_blogg/post/{url_title}'}</fb:comments-count></a></span> <span style="float:left"><a href="patricks_blogg/post/{url_title}"> kommentarer</a></span> Producing the line: Denna post har X kommentarer. This works for ALL browsers exept IE8 and down, where the rendering totally stops after the fb:comments-count -statement. (it works for IE9 by some peculiar reason) Anyone have a clue on how wo wrap this in order to have IE to understand? Best regards /Patrick I've been considering using Powersurge.net for my web site. Any comments about them? From what I've seen their support is very fast. (I recieved replies to all my questions within minutes.) Thanks wedding veils discount wedding dress mother of the bride I'm trying to parse thru an HTML file and besides of having some problems with images, I also don't really understand how comments markup works. I was reading this, and I don't understand how <!------> hello--> is only one comment. In my parser I run to this <!--, and then what? Should I look first for -->, then again for --> and then for <!-- ? If another --> comes before <!--, then the comment includes this -->, and I should look again for a --> until the next <!-- comes before the next -->, assuming that there is one. Or how does it work? I was wondering if anybody knew if using frontpage or had the code for something like pretty much: I want to make a comments / message board type thing where people can leave comments sorta of like on the end of the new york times articles or such where people comment, however i want to make it so i can approve the comments before they show up. Basically I have a tab on my website called future ideas and my goal is to have a small table at the bottom of the screen that simple has a "name", "comment" input box, and what I want is to when they click "submit" it will post a small little box of the person's comment on the bottom of the webpage. I have a feeling this is not easy at all and I would like some dumbed down language here when explaining to me because I am definitely not a pro at php coding yet. Or maybe if there is a package out there someone highly recommends please post it, but be sure there is a good guide to post as well for it. Thanks in advance! I'm just going through a refresher exercise with my HTML knowledge - going through some HTML skeletons with the w3c on hand, and I just had a thought that I hadn't ever considered before... It's taken as a given that the first line of a HTML document should be the doctype declaration, and that this must go before the <html> tag... But, are you allowed to place comments above the doctype? or will this break it? I can't find anything either way at w3c or anywhere else... I hate how MySpace comments don't fill up the entire width of the profile, so does anyone know (or help me with) a code that will stretch the comments across the entire profile? Is it possible to combine ie's conditional if's? I basically want (without the use of js) to be able to send a message to IE5 / 5.0 / 5.5 / 6 users. But i want to keep HTML download to a min.... Therefore can i combine the conditional iff's? can i put a conditional statement in a .css file ? im having trouble with getting my div & or hr to work in every browser i fix something on 1 browser i loose something from another when im coding the site... i want to know if i can put a statement that if browser internet explore execute this set of rules, elseif execute these set of rules... When creating a file from a template in Dreamweaver CS3, is there anyway to remove all the comment tags around editable regions? Hi, I've recently started a website for a game i belong to and i have things like news items and feedback items, but i want my viewers to be able to post their comments on them and maybe leave a rating out of 5 stars or something like that for each item. I have only just recently started learning coding and this is my first site, so i'm not very experienced yet. But i have used a few php bits to create feedback forms, would it need that sort of thing? Or could it be done simply in html or javascript? If anyone knows of any online tutorials which cover this sort of thing i would appreciate it! How do you deleted more than one comment at a time on myspace? ok first off... I looked at every site I could find to help me with this, but none of it helps out at all! Let me first also say that I have a site where I store my Fanfictions that I write myself. What I would like to do is to create something where the people that read the stories can review it on my site.( meaning to comment on it and even rate it) Here is the Site: http://annsanime.awardspace.com/YaoiFanfictions.html But here's the thing... I'm so confused about it... all the tutorials are not really clear on some things like what files to use or Exactly how to edit the forms or even how to put what file where or what to name it or to put in it.... it's all confusing to me.... I know how to make a form but that's about all.... other than that... I'm totally stumped! please someone help me! ~Ann Hello all, First of all, I am new to HTML stuff, so any help would be really appreciated. I use a WYSIWYG program called WYSIWYG Web Builder. While using this program (for around 10 months) I learned some stuff about HTML, PHP and CSS. And I managed to make my own website very well. In my website, there are some pages that I would like visitors to comment on the article these pages contain. That program offers a "Blog Extension", all I needed to do is to drag this extension to the page and it automatically creates the PHP code and other stuff (of course after creating the SQL database). This extension shows the comments in an inline frame, but with the help of a guy who uses the same program, we managed to remove the inline frame, so with every comment added, the page height expands. The only downside of this blog extension is that anyone can comment without approving the comment by the admin! Now, I noticed that Facebook has a comment plugin, I tried it on a "white" page and it works well. But, let's have this scenario: I have a page with blue background color, and I want the Facebook comments plugin to be inside a gray frame that expands WITHOUT showing the scrollbar (not for the page, for the comments) when more comments are posted, how can I do that? Thanks a lot <![if gt IE 6]></a><![endif]> will not validate. How can i modify this so it will? Is it possible that the inclusion of a script on a page be conditional to the web server that it's on? if(the page is on Web Server 1) { Include Script 1 } else if(the page is on Web Server 2) { Include Script 2 } I'm working on several Google Maps web pages (10-12 at a time). I test the pages on our development web server and then move them to our public web server. The problem is that there is a different Google Maps Key for each web server that must be included on the web page. Right now, I have to comment out one and uncomment the other every time I copy these pages from one server to the other. Example of GM Key on Web Server 1: <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAADCKg1uyd0NtoV0-TYT13MBROYM5OA_GDIvgonnUJTWljoaMDChT_7EqrLEb8A0mLzFhHNCgkaMCUIw" type="text/javascript"></script> Example of GM Key on Web Server 2: <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA2Aa0y9qM0iE5-qtohbB_BBR7Dq-sN_oqy05rIf4WVBwd942bvhSeBq4siSIiJWbTtlmDhuk0aADGRA" type="text/javascript"></script> |