Everything posted by Tim Smith
-
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!
-
CSS broke in IE - What's the fix?
Table layouts again?? Please consider using DIVs and CSS. Much easier to manage and I find only a few minor changes needed to be made to work in IE6.
- swf
-
Dreamweaver = Marmite?
I have to say I hate it too! What can Dreamweaver do that a good old copy of Gedit or Notepad can't do. Oh yeh - add lots of useless code... Lats time I used, it used to generate tables for layout. Is that still the case?
-
Articles
Hello, I've had a domain and server for ages now and just mess around with it. I really have no idea what to do with it. So if anyone has any interesting articles they want to write, then let me know. Can be about anythign really, hopefully some web programming stuff but if its interesting, I'll consider it. Thnks for listening
-
JSF - is it worth it?
Have been messing around with JSF recently and to be honest - I really don't know what all the fuss is about! I understand that it simplifies the development process but is it really worth it? I feel that a lot of control goes out of the window a lot of the times with this framework and realistically what is it that JSF does that knocking up a custom Servlet can't? Does anyone have have any opinions on this? Just a starting a friendly discussion! Tim
-
IE6 woes
Yeh - maybe a little hasty in my reply! I know there ways to work around it - just frustrating sometimes. Have been developing sites as a hobby for years and I am surprised at how the whole IE thing still stirs my blood after all this time! I saw the W3 schools stats but I think these could be skewed. I read somewhere that the stats may be disproportionate since the majority of users visiting the W3Schools site are web developers and so would possibly favour a better browser. (i.e. a standards based one!)
-
IE6 woes
Well I think its time to NOT support IE6 in my opinion. But I need to asses whether this is a wise choice. I found http://www.thecounter.com/stats/2008/November/browser.php which shows a 35% usage. Well I guess thats better than > 50%! Does anyboidy else know of any other good stats sites to properly asses this kind of thing?
-
IE6 woes
I'd love to say that I can't be bothered with supporting IE6 but it is a sad fact of life that people are still using it. And its difficult trying to explain to clients why the site you just knocked up for 'em looks awful!! Thanks for the suggestions tho. The Multiple_IE thing would be great apart from one thing - I am so anti-MS that I don't even use Windows and have been happy not using Windows for a few years now! The NetRenderer is great - but was hoping to check out my JS against a browser too. Sigh - I'm sure MS do this on purpose you know!
-
IE6 woes
Does anybody know of a good way to view sites in IE without actually using IE? What I mean is, does anyone know of a plugin to Firefox or something other app available on Linux that will parse documents according to IE6's implementation of XHTML and CSS. Perhaps someone has built a "hacked" Gecko engine using the rules of IE6? Just so annoying to design a nice site which checks out with the W3C and then looking in IE6 (under IES4Linux) it is all over the place! Just a thought here which came to me. The EU decided in their wisdom that people had to supply weights etc for the selling of fruit and veg in metric and not imperial measurements. Why can't an organization like the EU spend its time on enforcing a standardisation of the 99% globally accepted W3C standards instead of my fruit and veg? Does anyone know if this is or has being looked into? I know that this will be of little issue in the future as IE7 is 70% of the way there and IE8 is on its way - but in the meantime I still get fed up having to recode my CSS just to satisfy a poor implementation of web standards. ...rant over!
-
Suns JSF and Tomahawk
Hi, Has anybody got any experience of using Suns JSF implementation with the Apache Tomahawk project? I am looking to add in the extra tags but getting "java.lang.String - ClassNotDefinedException(!!)" Have seen a couple of things stating that I need to degrade my Tomcat installation to use JDK5 instead of 6 but really not up for doing that if I can help it. Thanks in advance. Tim