Jump to content

Search the Community

Showing results for tags 'templates'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 9 results

  1. I'm doing an online course where currently the problem is to use a template to display an array of images. The code looks like this: the .js file is the following: This is the same as given in the course, but in my case it just display the title but not the images. All pictures and relevant files are in the same folder. Perhaps I should also add that this course aims to introduce to Meteor, and the meteor version I have doesn't seem to be exactly the same as in the course. One of the things I'm also confused about is that you need to include the other files of the same project using the script or link tag, but now (with meteor) it suddenly doesn't seem to be necessary any more. Thanks for your help.
  2. I've a beginner's problem maybe someone can help with. Imagine a game simulating a sporting event (baseball, boxing, football, &c.). The games, themselves, are divided into time periods -- innings, rounds, quarters, &c. -- and one cannot know ahead of time how many periods actually will be played. So, for example, baseball is a nine-inning game -- unless there is rain or the need for extra innings if a tie; boxing is so many rounds -- unless there is a knockout or other fight-ending incident. The simulation addresses this within the game via a template -- the template describes with html what the presentation of one period -- inning, round, quarter, &c. -- will look like, and the simulation then simply calls the template for however many periods it needs to complete the contest. My problem (we'll use boxing hereafter) is that I want to install a different image (a round-card girl with card showing the correct round number) at the beginning of each round. My thinking so far is to create an array, var cardgirls=new Array(), with each of 15 girls occupying a slot in the array, cardgirls[0].src=../../images/RCG1.png, &c.; body onload = "Cardgirl(cardgirl1, cardgirls)"; &c. The difficulty is as follows: I can call for a specific card girl (one for all the rounds) by using <td id=img><img src = "../../images/RCG1.png, and the first card girl then will appear atop each round. HOWEVER, if I try to substitute a javascript function for the image source (to change the src code and get a different image) -- document.getElementById("cardgirl1).src=cardgirls[k].src (referring back to the array); body onload = "Cardgirl(cardgirl1, cardgirls);"...<td id="img"><img id = "cardgirl1">, &c. -- I can get the images to cycle in order, but they only appear for the first round (NO images appear for rounds 2 through end, only the alt, "Cardgirl"). For clarity, let me put it another way: The game is loading the "rounds" template ("innings" template -- whatever) for every round the game calls for and using an anchor tag to distinguish them [name=$$No.$$, so that each "round" template has "name=1; name=2; name=3, &c.]. If I use a general source for ONE of the images, img src="../../images/RCG1.png", that image will appear above ALL the rounds; BUT, if I call a javascript cycle function, the template tries to cycle ALL of the photos in the first round and installs NONE of them in rounds two to end, which remain blank save for the alt unless I also install a default image [src=../../images/RCG16.png, &c.]. I gather that, somehow, I need to link the image placement -- one per use of the template -- with the anchor ID, but so far my efforts to do that have not met with success. Nor was I successful when I relocated the javascript function from the general head to the end of the "rounds" template (on the assumption that, each time the template was used, it would call anew the cycle function). Anyone have any idea what I'm doing wrong? The relocation idea did get me the proper number of cycles, e.g., 7 for 7 rounds, but that just caused RCG1 to be the girl with card, Round 8, instead of Round 1 or Round 12 (what appears when the function is left in the head). Relocating does not move the image to the correct round.
  3. Dear all i want a php template in free can anyone help me???
  4. Dear experts, As we know that we can do so much with these great languages such as: tools, plugins, templates, applications, design/styles, etc. and even games. I think a little bit member activity will be great. Perhaps w3schools could add one more category on this forum, a place where members can share their creation (the small one of course). Perhaps some of you can even make some kind of competition (?) just for fun. It's not like I have creations to share, this just came up in mind. Beside, I only know some basics; but will learn to make some if there's a room for that.
  5. I have started over on designing my website's blog.beta.cleantelligent.com/blogI am trying to use a custom template (t-blog.php) to design the page. It will also need a custom sidebar in order to list archives, etc.This is different from my main website.I can't seem to get the blog template, or the blog sidebar to work. Nor is it displaying my posts. I have changed the settings in Reading so that "Blog" is my posts page.Any idea why it's not working at all? (The title of the page seems to be calling my most recent posts title, but the blog post itself is not there.)
  6. Hi, when you create a template in the dreamweaver for your simple html website, you can edit it later and the dreamweaver automatically applies those changes to the selected subpages. Okay, but what about the changes to the particular subpages when you use just text editor? Are there any tricks that you can use to quickly update subpages to the current template? (e.g. links) Or do you just need to manually copy&paste/rewrite the changes to each single subpage? Are there any tricks, efficient methods? Or perhaps a very good design is the answer? Thanks.
  7. Hi, I am currently building a portfolio using the drag and drop design software wix. I have tried coding it myself in dream weaver but I always get hung up the design. So What i want to do is get the basic ideas of the site with the WIX program, and then recreate it myself in dreamweaver as there are some things that the program can not do that I would like. My problem has been in the design process though. I always read to code repeating items in separate files so you only have to change one file if something changes. Things like the header, footer, navigation, ect.My question is, what is the proper way to include these elements. In the past I have designed a basic CSS layout and then I'd include the various elements with PHP include. For the navigation, I tended to use PHP switch statements to load the appropriate content into the content portion of my design. Unfortunately this results in having only one web address that doesnt change to the various pages. I'm assuming the proper way would be to include the different elements into the content index file itself. Does that make sense? Is there a way to do this without PHP? How do the different sections fit within the <body> tag? What's the best process in putting all these parts together and organizing them within the site folder structure? If this is not clear, I will try to provide an example. Thanks for any help.
  8. I want to create a XHTML web page template that I can link somehow to child web pages. If the web page template design changes I want the additional child pages to update automatically. This is my current DOCTYPE: <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN""http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> I have already created the page I want to use as a template in XHTML with CSS stylesheet using Notepad ++. The only changes that I need to do with each child page are copy and paste an iframe into the body/container. The child pages do not require any design changes. Any information on creating templates and child pages would be greatly appreciated. Thanks
  9. Hi there. I'm new to xslt but I've done a fair amount of research on it in the last couple of days. I'm missing something when it comes to variables, though. What I would like to do is check the value of a field (ows_Style) and if it's equal to something ('~New~Paragraph~') then set a variable (Prefix) to some value ('abc') so that I can add that value to the output. In my current output I'm displaying 'aaa' and 'bbb' in order to see what gets displayed between them -- but right now nothing does. My expectation was that in my CHOOSE statement one of the two parts (the WHEN or the OTHERWISE) would be executed no matter what, so $Prefix would have either the value 'abc' or the value 'xyz'. If you could let me know what I need to do to make this work, I'd really appreciate it. Here's my xml: <?xml version="1.0" encoding="UTF-8"?><listitems xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" > <rs:data ItemCount="883"> <z:row ows_LookupKey="CANC300" ows_Priority="1.00000000000000" ows_Language="en_CA" ows_Style="~New~Paragraph~" ows_Content="MEMO TO: {var}BN_ProducerCode_Description{/var}" ows_MetaInfo="391;#" ows__ModerationStatus="0" ows__Level="1" ows_ID="391" ows_owshiddenversion="3" ows_UniqueId="391;#{D30E3EB7-238C-4989-BBDD-ED4D9F1AD8CE}" ows_FSObjType="391;#0" ows_Created="2011-12-02 10:12:29" ows_FileRef="391;#sites/coop/base/Lists/Content Pages Sections/391_.000" /> <z:row ows_LookupKey="CANC300" ows_Priority="2.00000000000000" ows_Language="en_CA" ows_Style="~New~Paragraph~" ows_Content="DATE: {var}BN_EditEffectiveDate{/var}" ows_MetaInfo="393;#" ows__ModerationStatus="0" ows__Level="1" ows_ID="393" ows_owshiddenversion="3" ows_UniqueId="393;#{92C36A45-6B75-48E4-B03A-29EDECE4A246}" ows_FSObjType="393;#0" ows_Created="2011-12-02 10:12:29" ows_FileRef="393;#sites/coop/base/Lists/Content Pages Sections/393_.000" /> </rs:data></listitems> And here's my xslt: <?xml version="1.0"?><xsl:stylesheet version="1.0" xmlns:xsl="[url="http://www.w3.org/1999/XSL/Transform"]http://www.w3.org/1999/XSL/Transform[/url]" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" > <xsl:output method="text" encoding="windows-1252" /> <xsl:template match="/"> <xsl:text>LookupKey,Priority,Language,Style,Content </xsl:text> <xsl:apply-templates select="listitems"/> </xsl:template> <xsl:template match="listitems"> <xsl:apply-templates select="rs:data"/> </xsl:template> <xsl:template match="rs:data"> <xsl:apply-templates select="z:row"/> </xsl:template> <xsl:template match="z:row"> <xsl:variable name="Prefix"> <xsl:choose> <xsl:when test="@ows_Style = '~New~Paragraph~'"> <xsl:copy-of select="abc" /> </xsl:when> <xsl:otherwise> <xsl:copy-of select="xyz" /> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:value-of select="concat(@ows_LookupKey,',' ,format-number(@ows_Priority,'####'), ',',@ows_Language,',' ,@ows_Style,',aaa',$Prefix,'bbb')"/> <xsl:text> </xsl:text> </xsl:template></xsl:stylesheet> Dave
×
×
  • Create New...