Jump to content

vchris

Members
  • Posts

    1,529
  • Joined

  • Last visited

Posts posted by vchris

  1. I use a div for the menu and for vertical menus like this I use unordered lists.HTML:<div id="menu"><ul><li>list item 1</li><li>list item 2</li><li>list item 3</li></ul></div>CSS:#menu {float:right;width:200px;}#menu ul {margin: 0;padding: 0;}#menu ul li {list-style-type: none; /* remove bullets */}

  2. You can use CSS to set this image as a background image but I would recommend reducing the opacity of this image so if you have text over it, there will be enough contrast so users can read it. Oh and try not to use a huge image like this one. If you could reduce the size and maybe a bit the quality so it's fast to load.background: url('images/bg.jpg') no-repeat;

  3. To be honest, I think it needs a lot of work. The navigation seems like it's been copied from somewhere. It doesn't fit in. The intro page has so many ads that I didn't know where to click for a few seconds. You have xhtml 1.0 and css valid images but your page don't validate with your DTD. You have no header. It's unclear the name of your site. Your validation page looks more like an FAQ. The HTML tutorial opens in another window, I don't know why but I think if it's part of your site it should open in the same window. Your image in the HTML tutorial is way too large (116kb), you can reduce the quality and it's almost not noticeable. That's about it.

  4. Thanks for the info. That's what I wanted to know. I don't have kids, I don't have a dog and no wife. I'm gonna have to figure out what to put there, maybe a picture of myself :)

  5. Hey skemcin is it possible to remove parts of the desk? Like the top monitor support, I'd want the monitor to be sitting on the desk. Could I remove those side thingys on the desk? They're kinda useless. Would that leave holes?

  6. That's a nice desk! I'm trying to find out how much it is...EDIT: Just found out... 2500$... Actually I've seen from 1000$ - 2500$. Actually I got it for 460$.

  7. I'm looking for a nice computer desk which includes drawyers to put some stuff, wire holder (a place the wires can run without me seeing them or laying on the ground), something of quality, preferably aluminum, no glass. I've been looking everywhere but all I can find are crap desks. The best one I could find was the one from Lian Li, the F1 desk but that is 2500$ US. Just a bit over-budget. Let me know of a good place to find something like that.

  8. I could've used regexp but it was way simpler. The names were all the same, only the value was different. So I used a script to check them all before the form reloaded. Works great :)

  9. Is there a way I can check a checkbox when I only know part of the name? For example I could have many checkboxes and they would all start with "email_" and then the username. I have a query to populate this checkbox. I can't have the form processing done after the query since when the page is reloaded it'll still show the records before I update. This is an approval all function which I send an email to all users approved. So what I want is when I press Approve All that all checkboxes are checked with javascript. This page is done in coldfusion if you know of another way of doing this let me know.EDIT: Please delete this post. I found the answer.

  10. You mean like this? If so I got Fatal error: Cannot instantiate non-existent class: xsltprocessor in...

    //Prepare the XML file			$xml = new DomDocument(file_get_contents($xmlFile));			/*$xml = new DomDocument('1.0');			if (!$xml->loadXML(file_get_contents($xmlFile))) {			die('XML file at "' . $xmlFile . '" is not well-formed');			}*/			//Prepare the XSLT file			$xsl = new DomDocument(file_get_contents($xsltFile));			/*$xsl = new DomDocument('1.0');			if (!$xsl->loadXML(file_get_contents($xsltFile))) {			die('XSLT file at "' . $xsltFile . '" is not well-formed');			}*/

  11. I added ini_set('display_errors','On'); and I got 2 errors:

    Warning: domdocument() expects at least 1 parameter, 0 given in /test.php on line 21Fatal error: Call to undefined function: load() in /test.php on line 22
    Line 21: $xml = new DomDocument;Line 22: if (!$xml->load($xmlFile)) {

    The php code was copied from what you gave me earlier and I didn't alter anything except for the filenames.

  12. I see the error message. I use php on all of the pages of my site so php should be fine also...XML:

    <?xml version="1.0" encoding="iso-8859-1" ?><?xml-stylesheet type="text/xsl" href="gallery.xsl"?><gallery>	<website>		<title>Deep Coding</title>		<desc_e>This is a short description of DC.</desc_e>		<desc_f>Ceci est une courte description de DC</desc_f>		<smallthumb>/images/websites/newdeepcoding_small.jpg</smallthumb>		<largethumb>/images/websites/newdeepcoding_large.jpg</largethumb>	</website></gallery>

    XSL:

    <?xml version="1.0" encoding="iso-8859-1" ?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/">	<html>	<body>	<ul>	<xsl:for-each select="/gallery/website">	<li><a href="<xsl:value-of select="largethumb"/>" rel="lightbox" title="<xsl:value-of select="title"/> - <xsl:value-of select="desc_e"/>" ><img src="<xsl:value-of select="smallthumb"/>" alt="<xsl:value-of select="title"/>" /></a></li>	</xsl:for-each>	</ul>	</body>	</html></xsl:template></xsl:stylesheet>

    I've tested these 2 files by themselves before and the xsl doc outputted exactly what I wanted so they should be fine.

  13. var url = window.location;var lang = "";if(url.indexOf("_e.php") != -1)  lang = "english";else if(url.indexOf("_f.php") != -1) lang = "french";else  lang = "unknown";

    I tried your code but I get javascript errors. It says that url.indexOf is not a function. Then I tried url.search and it said the same thing...
×
×
  • Create New...