[Phpfreechat-svn] SF.net SVN: phpfreechat: [893] trunk
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-12-08 13:45:27
|
Revision: 893 http://svn.sourceforge.net/phpfreechat/?rev=893&view=rev Author: kerphi Date: 2006-12-08 05:45:26 -0800 (Fri, 08 Dec 2006) Log Message: ----------- remove annoying blinking when the sound notifier is started Modified Paths: -------------- trunk/src/client/pfcgui.js trunk/themes/default/style.css Modified: trunk/src/client/pfcgui.js =================================================================== --- trunk/src/client/pfcgui.js 2006-12-07 17:55:46 UTC (rev 892) +++ trunk/src/client/pfcgui.js 2006-12-08 13:45:26 UTC (rev 893) @@ -306,10 +306,10 @@ var soundcontainer = document.getElementById('pfc_sound_container'); if (pfc.issoundenable) { - var flash = '<object style="visibility:hidden" classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0">'; + var flash = '<object style="visibility:hidden" classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="0" height="0">'; flash += '<param name="movie" value="' + pfc.res.getFileUrl('sound.swf') + '">'; flash += '<param name="quality" value="High">'; - flash += '<embed src="' + pfc.res.getFileUrl('sound.swf') + '" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1">'; + flash += '<embed style="visibility:hidden" src="' + pfc.res.getFileUrl('sound.swf') + '" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="0" height="0" />'; flash += '</object>'; soundcontainer.innerHTML = flash; } @@ -709,7 +709,7 @@ // sound container box : <div id="pfc_sound_container"> var soundcontainerbox = document.createElement('div'); soundcontainerbox.setAttribute('id', 'pfc_sound_container'); - inputcontainer.appendChild(soundcontainerbox); + container.appendChild(soundcontainerbox); } }; Modified: trunk/themes/default/style.css =================================================================== --- trunk/themes/default/style.css 2006-12-07 17:55:46 UTC (rev 892) +++ trunk/themes/default/style.css 2006-12-08 13:45:26 UTC (rev 893) @@ -348,7 +348,10 @@ font-size: 11px; } div#pfc_sound_container { + position: absolute; + top: 0; + left: 0; visibility:hidden; /* this box is hidden because it contains a flash sound media (sound.swf)*/ width: 0; height: 0; -} \ No newline at end of file +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |