<?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>The Online Shop Designer Blog &#187; editor</title> <atom:link href="http://www.tosd.com.au/tag/editor/feed/" rel="self" type="application/rss+xml" /><link>http://www.tosd.com.au</link> <description></description> <lastBuildDate>Sun, 27 Nov 2011 01:29:52 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.4</generator> <item><title>How to add a rollover image with FCKeditor</title><link>http://www.tosd.com.au/2009/01/adding-a-rollover-image-with-fckeditor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=adding-a-rollover-image-with-fckeditor</link> <comments>http://www.tosd.com.au/2009/01/adding-a-rollover-image-with-fckeditor/#comments</comments> <pubDate>Tue, 06 Jan 2009 21:16:06 +0000</pubDate> <dc:creator>tosd</dc:creator> <category><![CDATA[CMS Systems]]></category> <category><![CDATA[eCommerce]]></category> <category><![CDATA[code]]></category> <category><![CDATA[editor]]></category> <category><![CDATA[FCKeditor]]></category> <category><![CDATA[how to]]></category> <category><![CDATA[image]]></category> <category><![CDATA[mouseover]]></category> <category><![CDATA[rollover]]></category> <guid
isPermaLink="false">http://www.tosd.com.au/?p=677</guid> <description><![CDATA[Unlike TinyMCE, FCKeditor has no inbuilt functionality that allows a rollover image to be added. This does not mean that the same effect cannot be achieved however. Rollover images require two images for operation, one that shows the normal state when a mouse is not hovering over the image, and one that shows the image [...]]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Unlike TinyMCE, FCKeditor has no inbuilt functionality that allows a rollover image to be added. This does not mean that the same effect cannot be achieved however.</p><p
style="text-align: left;"><strong>Rollover images require two images for operation</strong>, one that shows the normal state when a mouse is not hovering over the image, and one that shows the image when it is. The following two images are a typical example.</p><p
style="text-align: center;"><img
class="size-medium wp-image-678 alignnone" title="order" src="http://www.tosd.com.au/wp-content/uploads/2009/01/order.png" alt="" width="120" height="31" /> <img
class="alignnone size-medium wp-image-679" title="order_on" src="http://www.tosd.com.au/wp-content/uploads/2009/01/order_on.png" alt="" width="120" height="31" /></p><p
style="text-align: left;">The effect is set up so that the image normally appears as it does on the left, changing to the one on the right when the mouse is rolled over it. Because the images are identical, it will appear as if it is just the text that is changing colour, or &#8216;highlighting&#8217;.</p><p
style="text-align: left;">To achieve this with FCKeditor first upload the two required images to your images directory, then open the page you want to edit in the FCKeditor and click the &#8216;Source&#8217; button in the toolbar. Scroll down to where you want to insert the code and paste the following (<strong>after reading the note below</strong>):</p><pre id="line141" style="text-align: left;">&lt;<span class="start-tag">img</span><span class="attribute-name"> title</span>=<span class="attribute-value">"Buy Now" </span><span class="attribute-name">
onmouseover</span>=<span class="attribute-value">"this.src='http://www.yourdomain.com.au/order_over.png';"
</span><span class="attribute-name">onmouseout</span>=<span class="attribute-value">"this.src='http://www.yourdomain.com.au/order.png';" </span><span class="attribute-name">
src</span>=<span class="attribute-value">"http://www.yourdomain.com.au/order.png" </span><span class="attribute-name">
alt</span>=<span class="attribute-value">"buy now" </span><span class="attribute-name">width</span>=<span class="attribute-value">"120" </span><span class="attribute-name">height</span>=<span class="attribute-value">"31" </span><span class="error"><span class="attribute-name">/</span></span>&gt;</pre><p>In this example the normal image is &#8216;order.png&#8217; and the hover (mouse over) image is &#8216;order_over.png&#8217;.</p><p>When using this code remember to edit it with your own domain name, image names and image directory path.</p><p>Finally it is normally the case that the button is to be linked. In this case you must simple add the appropriate anchor tags around the above code. e.g.</p><pre style="text-align: left;">&lt;<span class="start-tag">a</span><span class="attribute-name"> </span><span class="attribute-name">href</span>=<span class="attribute-value">"order.php"</span>&gt;
&lt;<span class="start-tag">img</span><span class="attribute-name"> title</span>=<span class="attribute-value">"Buy Now" </span><span class="attribute-name">
onmouseover</span>=<span class="attribute-value">"this.src='http://www.yourdomain.com.au/order_over.png';"
</span><span class="attribute-name">onmouseout</span>=<span class="attribute-value">"this.src='http://www.yourdomain.com.au/order.png';" </span><span class="attribute-name">
src</span>=<span class="attribute-value">"http://www.yourdomain.com.au/order.png" </span><span class="attribute-name">
alt</span>=<span class="attribute-value">"buy now" </span><span class="attribute-name">width</span>=<span class="attribute-value">"120" </span><span class="attribute-name">height</span>=<span class="attribute-value">"31" </span><span class="error"><span class="attribute-name">/</span></span>&gt;
&lt;/<span class="end-tag">a</span>&gt;</pre><p><strong>NOTE</strong>: I have added line breaks in the above code to make it easier to read in this post. These should be removed before pasting the code into your editor. In other words the code  from &lt;<span
class="start-tag">a</span><span
class="attribute-name"> </span><span
class="attribute-name">href</span>=<span
class="attribute-value">&#8220;order.php&#8221;</span>&gt; &#8230; to &#8230; &lt;/a&gt; should be on a single line.</p><p>.</p> ]]></content:encoded> <wfw:commentRss>http://www.tosd.com.au/2009/01/adding-a-rollover-image-with-fckeditor/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
