<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Play Station Expert &#187; web</title>
	<atom:link href="http://www.playstationexpert.com/tag/web/feed" rel="self" type="application/rss+xml" />
	<link>http://www.playstationexpert.com</link>
	<description>All about Play Station - SPS Tips, Games Reviews, Things to Know Before You Buy Play Station</description>
	<lastBuildDate>Fri, 05 Mar 2010 12:38:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Customizing The Set Text Of Container Behavior In Adobe Dreamweaver CS4</title>
		<link>http://www.playstationexpert.com/play-station-tips/customizing-the-set-text-of-container-behavior-in-adobe-dreamweaver-cs4.html</link>
		<comments>http://www.playstationexpert.com/play-station-tips/customizing-the-set-text-of-container-behavior-in-adobe-dreamweaver-cs4.html#comments</comments>
		<pubDate>Sun, 09 Aug 2009 12:00:08 +0000</pubDate>
		<dc:creator>playstation</dc:creator>
				<category><![CDATA[Play Station Tips]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[computer tips]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[dreamweaver]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.playstationexpert.com/computers/customizing-the-set-text-of-container-behavior-in-adobe-dreamweaver-cs4.html</guid>
		<description><![CDATA[Adobe Dreamweaver is one of the key components of Adobe Creative Suite CS4. It is a very widely-used web development package. Behaviors are Dreamweaver&#8217;s implementation of JavaScript and automatically generate JavaScript code based on choices made in user-friendly dialogue windows. JavaScript is a widely-used programming language which can add interactivity to web pages. As users [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://www.macresource.co.uk/courses/dreamwvr1b.htm' target='_blank'>Adobe Dreamweaver</a> is one of the key components of <a href='http://www.macresource.co.uk/courses/dreamwvr2.htm' target='_blank'>Adobe Creative Suite CS4</a>. It is a very widely-used web development package. Behaviors are Dreamweaver&#8217;s implementation of JavaScript and automatically generate JavaScript code based on choices made in user-friendly dialogue windows. JavaScript is a widely-used programming language which can add interactivity to web pages. As users interact with elements on the page via the mouse or keyboard, JavaScript functions can be triggered to perform a wide variety of operations. Dreamweaver&#8217;s Set Text of Container JavaScript behaviour is used to replace the contents of an HTML element such as a DIV, SPAN or table cell. A classic use of this behavior is to have content which appears when the mouse hovers over a given item and then disappears again when the mouse leaves the object.</p>
<p>The element whose contents will be altered needs to be given an ID which will be used in the JavaScript to identify it. In Dreamweaver, a good way of selecting elements is to click on the appropriate part of the page, then in the tag selector (the area in the bottom left of the document window), click on the tag of the container to highlight it and then enter an ID in the Properties panel. The element that you choose will determine what can be placed in the container. If a DIV tag is being used, then you can put pretty much anything; if an H1 tag is used, then only text can be used and so forth.</p>
<p>You may also find it useful to create the content before using the behavior then select the content, switch to Code view and cut or copy it to the clipboard. </p>
<p>To use the Set Text of Content behavior, as is always the case with Dreamweaver behaviors, you begin by selecting the object which will trigger the JavaScript. This could be a hyperlink, an image or an image map hotspot. Next, locate the Behaviors panel (Windows &#8211; Behaviors) and choose Set Text then Set Text of Container from the panel menu.</p>
<p>Within the dialoge window which Dreamweaver displays, begin by choosing the element which will be used as the container from the drop-down menu. This is where giving the element an ID becomes useful, since elements without IDs are simply shown as &#8220;unidentified&#8221;. Finally, enter your text or code in the box marked &#8220;New HTML&#8221; or simply paste the code previously copied in Code view.</p>
<p>If you have experience of writing JavaScript, you may be interested to know that you can embed JavaScript function calls, variables and other expressions within the code simply by placing them within curly braces. For example &#8220;{strUserName}&#8221; would evaluate to the current contents of a global JavaScript called &#8220;strUserName&#8221; defined somewhere on the current page.</p>
<p>The writer of this article runs training courses for an independent computer training company offering <a href='http://www.macresource.co.uk/courses/dreamwvr.htm' target='_blank'>Adobe Dreamweaver training</a> in London and all over the UK.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.playstationexpert.com/play-station-tips/customizing-the-set-text-of-container-behavior-in-adobe-dreamweaver-cs4.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
