-
Javascript to change image AND text
Whoops - yup - you're right!
-
title tag
Thanks jheg - what you say makes sense - just wondering what the implications are of having a "stop" word in my title tag. Going by your example, for my usage it should technically be "and".
-
title tag
Hi, Been getting up to speed on SEO best practices etc. I notice that the word 'and' is classed as a "stop word". Would it be better to use and ampersand (&) or is 'and' okay in title tags? Do search engines realise that the ampersand and 'and' are in fact the same thing? Just curious.... Thanks in advance!
-
Seperate style sheet for safari
Just out of curiosity - why would you need a separate stylesheet for Safari. As far as I know, it's a pretty good browser with good W3C compliance.
-
using onclick="location.href=''
This might be a long shot and I haven't tried it but can you change the <div> to a <span> and set it's display to block in css - then you will be able to wrap the span in an anchor.
-
Javascript to change image AND text
Try putting a div called "caption" and alter the innerHTML: <a href="javascript:changeImage('../Images/wedding-photo-01-bride-getting-ready.JPG')"> <img class="thumbbox" id="mainimage" src="../Images/wedding-photo-01-bride-get-thumb.JPG" alt="wellis photography logo" title="bride getting ready"> </a> <div id="caption"></div> and amend your function to this: function changeImage(filename) { document.mainimage.src = filename; document.getElementById('caption') = "something here"; } You'd probably want to look into tying up the image filename with the caption. Use an array perhaps? let me know if you need more help.
-
Height div = height screen
Hi - what browser are you using? I've checked with Chrome and Firefoxand it seems okay to me. Is it an IE issue?
-
XML anyone?
Cool - thought that might be the case. I'm using a JSF/JSP/Facelets kind of set up so am gonna transform into XHTML with some other JSF kinda stuff in there too. (I keep falling in and out of love with JSF!) Thank you once again!
-
XML anyone?
Just another question to pick your brains while you're about. When I look at the source of the document, I get the XML. I understand that since the browser is just using the XSL to format it and I can control how it is formatted (via xsl:output) but is there a way of ensuring that the source is "permanently changed" into XHTML? I'm probably asking a dumb question since I am actually not supplying XHTML. Just thinking aloud!
-
XML anyone?
Great! Thank you - I think this has done it! I am kinda testing out this doc (and finally getting round to properly learning XML) and gonna use Java to parse it fully into XHTML (I hope!) for output. Many Thanks again - especially for the quick response!
-
XML anyone?
Hello, I have created an XML document which has an element called <content> which contains XHTML. Whn I view the output in Firefox, the XHTML tags are not being rendered. The text is, but not the XHTML. I have used XSL to format the document and I can't put the XML there since the XHTML could change. So for example in the XSL I have: <div id="header"> <xsl:value-of select="site/header/content"/> </div> and the XML has: <content> <h2>News And Events</h2> <p>Some of our latest news here...</p> </content> Now I kinda understand this since my xml document hasn't defined anything for any xhtml elements. I don't want to since I want the browser to just render these as normal. I have tried a few things in my xsl like: <xsl:output method="xml" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" encoding="iso-8859-1"/> and using: <xsl:value-of select="content" disable-output-escaping="yes"/> but I either get the tags rendered as entities (i.e. < etc) or no tags at all? Has anybody had any experience of doing something similar? Not sure if I have provided all the info here so please let me know. Thanks in advance, Tim
-
Conditional Comments Validation Problem
If you are in IE and the stylesheet you conditionally include is relevant to your Browser version then yes. Other IE versions? Not sure - I doubt it though. FF and other browsers should just read these as comments and so will not download these additional sheet
-
<span></span> tags
Just to point out that if you want to use a span to make some text bold, think about using <b> or <strong> first and create a class to further style it. Some search engines use words flagged as bold or strong when they index your site.
-
Conditional Comments Validation Problem
The actually problem was that you terminated the comment incorrectly in the first instance... <!--[if !IE 6]> --> <link rel='stylesheet' href='portfolio.css' type='text/css' /> <![endif]--> should be... <!--[if !IE 6]> <link rel='stylesheet' href='portfolio.css' type='text/css' /> <![endif]--> in which case you won't need your solution of <!--[if ! IE 6]><!--> <link rel='stylesheet' href='portfolio.css' type='text/css' /> <!--<![endif]--> since you have just declared an empty comment. It fixes it yes - but kind of for all the wrong reasons!
-
IE & FF Stylesheets
You can use conditional comments for IE. They will be used by IE but since they are comments, they won't be read by other browsers... <!--[if IE 6]> <link rel="stylesheet"....etc <![endif]--> You can use do the same for IE 7 and 5 if you wish if you seem to be having the same probs. See how you get on with the redesign and then try "tweaking" the CSS you have written with amendments in a second CSS file. Note that you don;t have to use the entire sheet; if you place the conditional comments AFTER the main css LINK then all you have to do is specify the elements you want to change. Hope that makes sense!