Technology??A site for testing the new tools I'm building, and a little talk about what I'm learning on the way. |
Joshua dot Perina dot com - Posts - RSSSyndicated content powered by .geographical mediaRSS syndication makes it easy to receive content updates in My Yahoo!, Newsgator, Bloglines, and other news readers. |
Current Feed ContentJavascript DOM Ready for SSL in IEMany of the existing javascripts snippets you see on the internet to determine whether the DOM is fully loaded do not work properly in Internet Explorer when using the HTTPS secure protocol. The "normal" script is as follows and works great for HTTP but will through unsecure item warnings in IE because it adds a script element to the page. Here is the updated script which works with both secure and unsecure connections: function checkReady() { if (document.addEventListener) {...Javascript Replace All with VariableHere is how you replace all values in a string with another string which is inside of a variable using Javascript: var str = "Please change all the change words in this sentence."; var searchfor = "change"; str = str.replace(new RegExp(searchfor, 'g'), "changed"); The resulting value for str would be: "Please changed all the changed words in this sentence.";Javascript Transition EffectsHere are some samples of some basic javascript transition effects. We are thinking about putting some of these nifty effects into certain areas of .geographical media. It seems to be rather trendy these days to do so. I have created the following effects: Fade In, Fade Out, Fly Out and Drop Out, Drop Back The effects are all very easy to do with Javascript adjusting the style properties of the object you wish to have the effect on. I found the opacity properties here at quirksmode ... |