javascript Questions - SnippetGoodmost recent 30 from http://snippetgood.com2010-07-29T23:59:50Zhttp://snippetgood.com/feeds/tag/javascripthttp://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://snippetgood.com/questions/154/image-animationimage animationRemusRigo2009-11-24T10:47:42Z2010-07-21T20:22:20Z
<p>hi all
I have a site <a href="http://rigo.ro" rel="nofollow">rigo.ro</a> witch displays two images and moves them around. Under Iternet explorer it works great, but I want a code that works under Opera/Firefox</p>
<p>any help is welcomed
thanks</p>
http://snippetgood.com/questions/95/ie8-window-open-alternative-in-javascript-jqueryIE8 window.open alternative in javascript/jqueryGreg2009-10-14T15:55:01Z2010-06-21T12:18:38Z
<p>Is there an alternative to window.open in javascript/jquery? I'm asking because the function doesn't seem to work in IE8 any longer. </p>
http://snippetgood.com/questions/157/looking-for-a-little-bit-of-js-that-will-randomly-choose-contentlooking for a little bit of js that will randomly choose content.julian-mann2010-01-09T15:29:05Z2010-01-09T15:29:05Z
<p>I have a stackexchange site, vfxoverflow.com, and I would like yo place content in a box at random, or cycle through or whatever. For example, there are some tips or prompts such as: </p>
<ul>
<li>"Please vote up good questions"</li>
<li>"Don't post answers as comments, make a new answer"</li>
<li>"Don't post comments in the answer
field"</li>
</ul>
<p>I would like to put one in the question banner - a different one each refresh.</p>
<p>Thanks</p>
<p>Julian</p>
http://snippetgood.com/questions/129/how-can-i-display-formatted-rss-data-in-a-divHow can I display formatted rss data in a DIVOPIEWeb2009-10-23T19:33:07Z2009-11-11T13:25:24Z
<p>I'd like to display the title and a snippet of the last 2 or 3 entries of an RSS feed on another site. </p>
<p>I do not have access to a server-side technology on the receiving page, only Javascript/JQuery. </p>
<p>What do I need in order to get that done? </p>
http://snippetgood.com/questions/48/ninjafy-javascript-halloween-pirates-or-ghosts-or-ninjasNinjafy Javascript Halloween Pirates or Ghosts or NinjasStopTheSearch.com2009-10-07T17:24:56Z2009-10-20T02:57:05Z
<p>I'm looking for some cute Halloween-themed characters to go on my site... Hopefully something kind of surprising so that the site looks normal but when somebody clicks on one of the special page links they get surprised by one of the characters popping up. Or maybe the characters pop out of the page and run off-screen.</p>
<p>Does anybody have anything that could work?</p>
http://snippetgood.com/questions/30/how-do-i-toggle-a-div-in-javascript-show-hideHow do I toggle a div in javascript? (show/hide)Tillimook2009-10-02T22:33:49Z2009-10-17T04:28:21Z
<p>I thought I would share this snippet that I use to show and hide divs. Does anyone have any improvements?</p>
<pre><code>function toggle(obj) {
var el = document.getElementById(obj);
if ( el.style.display != 'none' ) {
el.style.display = 'none';
}
else {
el.style.display = 'block';
}
}
</code></pre>
http://snippetgood.com/questions/91/how-can-i-build-a-rotating-tips-feature-using-javascriptHow can I build a rotating "Tips" feature using JavascriptOPIEWeb2009-10-13T20:42:10Z2009-10-14T02:32:40Z
<p>I'd like to build a Javascript function that can read tips off of an XML or text document and display them randomly. I may up to two on screen at a time and it would be nice if they displayed different tips. The function would only need to change tips on page load and does not need to support async calls. I'm not exactly sure where to start. </p>
<p>JQuery is fine as well, although I have no experiance in using it and would rather not have to include multiple libraries. </p>
<p>For those that care, this is for a StackExchange site which has some JQuery capabilities baked in. </p>