"; } function change_wgt_color(txt,val){ if (!document.styleSheets) alert('error'); var theRules = new Array(); if (document.styleSheets[1].cssRules) theRules = document.styleSheets[1].cssRules else if (document.styleSheets[1].rules) theRules = document.styleSheets[1].rules else alert('error1');; if(val==1){ theRules['2'].style.background = '#'+txt.value; theRules['6'].style.background = '#'+txt.value; $("#widget_container").css('border','#'+txt.value+' 5px solid'); } if(val==2){ theRules['2'].style.color = '#'+txt.value; theRules['6'].style.color = '#'+txt.value; } if(val==3){ theRules['4'].style.background = '#'+txt.value; theRules['8'].style.background = '#'+txt.value; } if(val==4){ theRules['4'].style.color = '#'+txt.value; } if(val==5){ theRules['3'].style.color = '#'+txt.value; theRules['5'].style.color = '#'+txt.value; theRules['7'].style.color = '#'+txt.value; } change_val(); } function init_color(){ if (!document.styleSheets) alert('error'); var theRules = new Array(); if (document.styleSheets[1].cssRules) theRules = document.styleSheets[1].cssRules else if (document.styleSheets[1].rules) theRules = document.styleSheets[1].rules else alert('error1'); var c1 = document.getElementById('hf_back').value; var c2 = document.getElementById('hf_text').value; var c3 = document.getElementById('wgt_back').value; var c4 = document.getElementById('wgt_text').value; var c5 = document.getElementById('wgt_links').value; theRules['2'].style.background = '#'+c1; theRules['6'].style.background = '#'+c1; $("#widget_container").css('border','#'+c1+' 5px solid'); theRules['2'].style.color = '#'+c2; theRules['6'].style.color = '#'+c2; theRules['4'].style.background = '#'+c3; theRules['8'].style.background = '#'+c3; theRules['4'].style.color = '#'+c4; theRules['3'].style.color = '#'+c5; theRules['5'].style.color = '#'+c5; theRules['7'].style.color = '#'+c5; change_val(); } function selectText(){ document.getElementById('res').select(); var text_val = document.getElementById('res').value; } function change_no_of_links(){ var lim = document.getElementById('no_of_links').value; var filter = document.getElementById('filter').value; $("#wid_content").html(''); $.post("ajax_save.php",{action:"get_links", lim:lim, filter:filter}, function(data){ $("#wid_content").html(data); }); change_val(); }
Customize your apartment building widget then copy code and embed into your site. All building info is submitted by the public.
While this script is harmless, we are not responsible if it alters the way your site functions if you embed the javascript embed code incorrectly.