<?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>Working On It! &#187; javascript</title>
	<atom:link href="http://alesmeralda.110mb.com/blog/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://alesmeralda.110mb.com/blog</link>
	<description>many are the things that you would like and need to know...</description>
	<lastBuildDate>Thu, 10 Dec 2009 16:17:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The IFrame Ticker of Mystical Geek</title>
		<link>http://alesmeralda.110mb.com/blog/2008/07/14/the-iframe-ticker-of-mystical-geek/</link>
		<comments>http://alesmeralda.110mb.com/blog/2008/07/14/the-iframe-ticker-of-mystical-geek/#comments</comments>
		<pubDate>Sun, 13 Jul 2008 22:21:01 +0000</pubDate>
		<dc:creator>abet</dc:creator>
				<category><![CDATA[HTML-Related]]></category>
		<category><![CDATA[iframeticker]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mystical geek]]></category>
		<category><![CDATA[special effex]]></category>

		<guid isPermaLink="false">http://alesmeralda.110mb.com/blog/2008/07/14/the-iframe-ticker-of-mystical-geek/</guid>
		<description><![CDATA[ 
If you go to the Mystical Geek, you&#8217;d find that it has an animated portion on top of the blog entry and right under the main title header of the blog.&#160; The trick is produced by some lines of code for an iframe and an external file which contains the script and the contents [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><a href="http://alesmeralda.110mb.com/blog/wp-content/uploads/2008/07/01mgeek-iframe.jpg"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="106" alt="_01mgeek_iframe" src="http://alesmeralda.110mb.com/blog/wp-content/uploads/2008/07/01mgeek-iframe-thumb.jpg" width="307" border="0" /></a> </p>
<p>If you go to the <a href="http://www.agustino.org" target="_blank">Mystical Geek</a>, you&#8217;d find that it has an animated portion on top of the blog entry and right under the main title header of the blog.&#160; The trick is produced by some lines of code for an iframe and an external file which contains the script and the contents that are rotated.&#160; The script is provided by <a href="http://www.dynamicdrive.com/dynamicindex17/indexb.html" target="_blank">Dynamic Drive</a> and is easy to customize.&#160; Below is the main code for the iframe.</p>
<p><span id="more-61"></span></p>
<pre class="csharpcode"> <span class="rem">&lt;!--&lt;IFRAME&gt; ticker- By Dynamic Drive--&gt;</span>
<span class="rem">&lt;!--For full source code and more DHTML scripts, visit http://www.dynamicdrive.com--&gt;</span>
<span class="rem">&lt;!--This credit MUST stay intact for use--&gt;</span>
<span class="kwrd">&lt;</span><span class="html">img</span> <span class="attr">src</span><span class="kwrd">=&quot;http://img000.imageshack.us/img000/8350/pensmzl9.jpg&quot;</span>
 <span class="attr">align</span><span class="kwrd">=&quot;right&quot;</span> <span class="attr">hspace</span><span class="kwrd">=&quot;10&quot;</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;</span><span class="html">iframe</span> <span class="attr">id</span><span class="kwrd">=&quot;tickermain&quot;</span> <span class="attr">src</span><span class="kwrd">=&quot;exfile.htm&quot;</span> <span class="attr">width</span>=<span class="attr">300</span> <span class="attr">height</span>=<span class="attr">80</span>
 <span class="attr">marginwidth</span>=<span class="attr">0</span> <span class="attr">marginheight</span>=<span class="attr">0</span> <span class="attr">hspace</span>=<span class="attr">0</span> <span class="attr">vspace</span>=<span class="attr">0</span> <span class="attr">frameborder</span>=<span class="attr">0</span> <span class="attr">scrolling</span>=<span class="attr">no</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;/</span><span class="html">iframe</span><span class="kwrd">&gt;</span></pre>
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<p>The choice for the code was determined by the fact that I cannot use scripts that require one to add codes in the header of the Squarespace index page where the Mystical Geek resides.</p>
<p>The external file which is invoked by the iframe consists of the javascript and the content displayed by the iframe in between DIVs.&#160; It looks like the following</p>
<pre class="csharpcode">&lt;script language=<span class="str">&quot;JavaScript1.2&quot;</span>&gt;

<span class="rem">//IFRAME TICKER- By Dynamic Drive (http://www.dynamicdrive.com)</span>

<span class="rem">//configure delay between changing messages (3000=3 seconds)</span>
<span class="kwrd">var</span> delay=5000

<span class="kwrd">var</span> ie4=document.all

<span class="kwrd">var</span> curindex=0
<span class="kwrd">var</span> totalcontent=0

<span class="kwrd">function</span> get_total(){
<span class="kwrd">if</span> (ie4){
<span class="kwrd">while</span> (eval(<span class="str">&quot;document.all.content&quot;</span>+totalcontent))
totalcontent++
}
<span class="kwrd">else</span>{
<span class="kwrd">while</span> (document.getElementById(<span class="str">&quot;content&quot;</span>+totalcontent))
totalcontent++
}
}

<span class="kwrd">function</span> contract_all(){
<span class="kwrd">for</span> (y=0;y&lt;totalcontent;y++){
<span class="kwrd">if</span> (ie4)
eval(<span class="str">&quot;document.all.content&quot;</span>+y).style.display=<span class="str">&quot;none&quot;</span>
<span class="kwrd">else</span>
document.getElementById(<span class="str">&quot;content&quot;</span>+y).style.display=<span class="str">&quot;none&quot;</span>
}
}

<span class="kwrd">function</span> expand_one(which){
contract_all()
<span class="kwrd">if</span> (ie4)
eval(<span class="str">&quot;document.all.content&quot;</span>+which).style.display=<span class="str">&quot;&quot;</span>
<span class="kwrd">else</span>
document.getElementById(<span class="str">&quot;content&quot;</span>+which).style.display=<span class="str">&quot;&quot;</span>
}

<span class="kwrd">function</span> rotate_content(){
get_total()
contract_all()
expand_one(curindex)
curindex=(curindex&lt;totalcontent-1)? curindex+1: 0
setTimeout(<span class="str">&quot;rotate_content()&quot;</span>,delay)
}

window.onload=rotate_content

&lt;/script&gt;
 &lt;style type=<span class="str">&quot;text/css&quot;</span>&gt;
 &lt;!--
 P {
   font-family:Garamond;font-size:11pt;
 }

 A  {
   text-decoration:none
 }

 --&gt;
 &lt;/style&gt;
&lt;BODY&gt;

&lt;!--ADD YOUR TICKER CONTENT BELOW, by wrapping each one inside a &lt;DIV&gt; <span class="kwrd">as</span> shown below.--&gt;
&lt;!--For each DIV, increment its ID attribute <span class="kwrd">for</span> each additional content (ie: <span class="str">&quot;content1&quot;</span>, <span class="str">&quot;content2&quot;</span> etc)--&gt;

&lt;div id=<span class="str">&quot;content0&quot;</span> style=<span class="str">&quot;display:''&quot;</span>&gt;

&lt;!-- ADD TICKER<span class="str">'s CONTENT #1 HERE---------------------&gt;

&lt;span style=&quot;color:maroon;font-size:14pt;font-family:Trebuchet MS;</span><span class="str">Helvetica;Tahoma;font-weight:bold;&quot;&gt;Update Your Bookmarks&lt;/span&gt;
&lt;p&gt;You may now access this site using the shorter URL:  </span></pre>
<pre class="csharpcode"><span class="str">&lt;a href=&quot;http://www.agustino.org&quot; target=&quot;_top&quot;&gt;&lt;span style=&quot;font-size:14pt;font-weight:bold;&quot;&gt;www.agustino.org&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;

&lt;!-- END CONTENT #1-----------------&gt;

&lt;/div&gt;

&lt;div id=&quot;content1&quot; style=&quot;display:none&quot;&gt;

&lt;!-- ADD TICKER'</span>s CONTENT #2 HERE---------------------&gt;
Some content here. &lt;ul&gt;&lt;li&gt;even&lt;li&gt;lists&lt;li&gt;are&lt;li&gt;allowed&lt;/ul&gt;
&lt;!-- END CONTENT #2-----------------&gt;

&lt;/div&gt;

&lt;div id=<span class="str">&quot;content2&quot;</span> style=<span class="str">&quot;display:none&quot;</span>&gt;

&lt;!-- ADD TICKER<span class="str">'s CONTENT #3 HERE---------------------&gt;

Some content here.  Even &lt;span&gt; specifications are allowed.
&lt;!-- END CONTENT #3-----------------&gt;

&lt;/div&gt;

&lt;div id=&quot;content3&quot; style=&quot;display:none&quot;&gt;

&lt;!-- ADD TICKER'</span>s CONTENT #4 HERE---------------------&gt;
&lt;table border=<span class="str">&quot;1&quot;</span>&gt;&lt;tr&gt;&lt;td&gt;Some content here.  </pre>
<pre class="csharpcode">Even tables are allowed.&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;!-- END CONTENT #4-----------------&gt;

&lt;/div&gt;</pre>
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<p>The ticker was useful in that it allowed me to fix links to the blog posts that contain the keywords visitors of the site look for. The hits to these increased dramatically over just a twenty-four hour period.&#160; Try out the ticker.&#160; Just copy the codes off this page and modify them.&#160; And please, don&#8217;t delete the comments that say the codes are from Dynamic Drive.</p>
]]></content:encoded>
			<wfw:commentRss>http://alesmeralda.110mb.com/blog/2008/07/14/the-iframe-ticker-of-mystical-geek/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
