Jump to content

Little Goat

Members
  • Posts

    733
  • Joined

  • Last visited

Everything posted by Little Goat

  1. ok, first with your code, put it in a codebox. I don't know how to display how to do it without doing it, so look at the announcement that shows up on all the pages.second, close your options:this is right<option>blabla</option>this is wrong<option>blablalast of all,the onclick should look like this:onClick="window.location=document.navform.inchoice.value"I recomend using the onmousedown property instead of onclick. I was told that netscape doesn't support onclick very well.LG
  2. hi everyone,I was wondering if anyone knew how to make it so that your user can drag the page to scroll like in acrobat reader. I thought it would probably be done with javascript.if not or if it's not possible at all will someone please tell me?thanks, LG
  3. the correct way to make your css a valid external css file: body { font-size: 12pt; font-family: Times,Times new roman; background-color: #000000; color: #FFFFFF; }table { cellpadding: 0px; } in other words, don't put html tags in your css.you only need to put what is inbetween the style tags and inside the comment.LG
  4. search on google for free form processor.LG
  5. sorry I took a while to reply.about the <xsl:value-of> tag, I need the content and the template to be put into that space.I tried replacing it with an <xsl:apply-templates> tag and it shows all the content of the xml file, not just the content section. :)Here is the newest version of my XSL file. <?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> <head> <title><xsl:value-of select="page/title"/></title> <style type="text/css"> <xsl:value-of select="page/style"/> </style> </head> <body> <table width="100%"> <tr> <td colspan="2" id="header"><xsl:value-of select="page/title"/></td> </tr> <tr> <td id="links" width="20%"> <xsl:for-each select="page/links/link"> <xsl:variable name="href" select="to"/> <a href="{$href}"><xsl:value-of select="show"/></a><br /> </xsl:for-each> </td> <td id="content" width="80%"> <xsl:apply-templates/> </td> </tr> </table> </body> </html> </xsl:template> <xsl:template match="break"> <br/> <xsl:apply-templates/> </xsl:template></xsl:stylesheet> thats the one that shows all the XML content.same xml.if anyone knows how to make xsl transfer tags that are in the code, that would work, but I would prefer this.I don't know if I'm explaining it well, so if you can't figure out what I mean, please try it.thanks, LG
  6. here's an example: <html><head><title>attack of the killer popups</title><script type="text/javascript">function popup(amount){for(i=1 i<=amount i++){window.open("url of your file",status=no,toolbar=no,location=no,menubar=no,width=400,height=200)}}</script></head><body><input type="button" value="start" onmousedown="popup(anynumberhere)"/></body></html> and the code of the opened pages <html><head><title>attack of the killer popups</title><script type="text/javascript">function popup(amount){for(i=1 i<number i++){window.open("url of your file",status=no,toolbar=no,location=no,menubar=no,width=400,height=200)}window.close()}</script></head><body><input type="button" value="OK" onmousedown="popup(anynumberhere)"/></body></html> anyone correct me if i'm wrong, i'm new :)you can also use the math.random to make a random number of popups too, I think.well, I just tried it and it doesn't work for me, maybe someone can fix it for you.:)LG
  7. Hi,thanks for answering paetje, I tried your code , but I guess I don't understand what is taking place. I altered my XSL File to this; <?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> <head> <title><xsl:value-of select="page/title"/></title> <style type="text/css"> <xsl:value-of select="page/style"/> </style> </head> <body> <table width="100%"> <tr> <td colspan="2" id="header"><xsl:value-of select="page/title"/></td> </tr> <tr> <td id="links" width="20%"> <xsl:for-each select="page/links/link"> <xsl:variable name="href" select="to"/> <a href="{$href}"><xsl:value-of select="show"/></a><br /> </xsl:for-each> </td> <td id="content" width="80%"> <xsl:value-of select="page/content"/> </td> </tr> </table> </body> </html> </xsl:template> <xsl:template match="newline"> <br/> <xsl:apply-templates/> </xsl:template></xsl:stylesheet> But it still doesn't work. the XML file is the same.could you try to explain this to me or show me how to do it in my code?Oh and one more thing. does anyone know how to change the username on this forum? thanks, LG
  8. HiI’m new at XSLT and just for fun I decided to try making an XSLT file that makes it so that anyone can put in their content in the XML file and the XSLT file will make a nice web page out of it. I’m trying to make it so that whenever a user (or anyone else) puts <newline/> in the code, the XSLT will put a <br /> tag in the code. Right now it doesn’t do anything. Here are my filesXSLT <?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> <head> <title><xsl:value-of select="page/title"/></title> <style type="text/css"> <xsl:value-of select="page/style"/> </style> </head> <body> <table width="100%"> <tr> <td colspan="2" id="header"><xsl:value-of select="page/title"/></td> </tr> <tr> <td id="links" width="20%"> <xsl:for-each select="page/links/link"> <xsl:variable name="href" select="to"/> <a href="{$href}"><xsl:value-of select="show"/></a><br /> </xsl:for-each> </td> <td id="content" width="80%"> <xsl:value-of select="page/content"/> <p><xsl:apply-templates select="newline"/></p> </td> </tr> </table> </body> </html> </xsl:template> <xsl:template match="newline"> <br/> </xsl:template></xsl:stylesheet> and XML <?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="stylesheet.xsl"?><page> <title>This will show in the title space and the header</title> <style> body {background-color:aqua;} #header {background-color:teal; font-size:300%; font-family:Bradley Hand ITC,forte; text-align:center; height:128; color:white;} #links {background-color:red; font-size:150%; height:250;} #content {background-color:#ffffee; text-align:center;} </style> <links> <link> <show>Home</show> <to>example.htm</to> </link> <link> <show>home2</show> <to>example.htm</to> </link> </links> <content>Content here<newline/>this break doesn’t work </content></page> Thanks in advanceLG
×
×
  • Create New...