float: left – anchor’s height

Today I faced a strange problem …. I have to add drop-down menu by javascript. <a href=”https://www.svnlabs.com” style=”border:2px dotted #0000FF”><img src=”svnlabs.gif” border=”0″ style=”border:2px solid #009966″ /></a> this is the code where I have to add a menu but menu dancing on this image.. when I mouse over the image menu appeared to bottom of the … Read more

TinyMCE load ajax

Today I got problem to load TinyMCE as dynamic loaded textareas by Ajax? Solution: <a href=”javascript:void(0)” onclick=”ajaxEdit(); showEditor();”>Edit Content</a> here ajaxEdit() is ajax function where textarea loaded by ajax as html response. here we have use showEditor(); to load TinyMCE editor … page loaded by Ajax <script> function showEditor() { setTimeout(“initEditor(‘newsdesc’)”,4000); } tinyMCE.init({……………………… …………………………………………………}); function … Read more

amcharts – dynamic data generated with PHP

AmCharts is a set of Flash charts for your websites and Web-based products. AmCharts can extract data from simple CSV or XML files, or they can read dynamic data generated with PHP, .NET, Java, Ruby on Rails, Perl, ColdFusion, and many other programming languages. Source: JavaScript Charts & Maps Download amCharts 4 Help: http://www.appfire.com/appfire-flashcharts-plugin/FusionChartsFree/Contents/ChartSS/XML_Col2DLineDY.html

Get popup center

function get_popup_center(popurl) { var top = (screen.availHeight/2)-61; var left = (screen.availWidth/2)-150; var width = 300; var height = 150; //var popurl = ‘https://www.svnlabs.com’; var oWin = popUp(popurl, top, left, width, height); } function popUp(URL, top, left, width, height) { day = new Date(); id = day.getTime(); eval(“page” + id + ” = window.open(‘”+URL+”‘, ‘” + … Read more

focus password element from password to ********

/** *  <form> *  <input type=”text” name=”password” value=”Password” onfocus=”get_password_focus(this)”> *  </form> *  This function can be used for focus password element from password to ******** */ function password_focus(obj) { var newO=document.createElement(‘input’); newO.setAttribute(‘type’,’password’); newO.setAttribute(‘name’,obj.getAttribute(‘name’)); obj.parentNode.replaceChild(newO,obj); newO.focus(); }

Get page size

function get_page_size() { var de = document.documentElement; var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth; var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight; arrayPageSize = new Array(w,h); return arrayPageSize; }

Change Images

/* change image on mouseover and click */ function mEvent(id,img1,img2,img3) { var i = new String(); i = document.images[id].src; document.images[id].src = i.replace(img2,img1); //for click condition if(document.images[id].src.indexOf(img3)!=-1) document.images[id].src = i.replace(img3,img1); }

Templates Search Made Easy

Suppose you want to search joomla/wordpress templates and find the site for all these templates, here you have to navigate entire templates with all pages. This will waste your time and internet band width…. www.bestofjoomla.com The best way to navigate all template in few seconds: This will save your time and band width….. Here on … Read more

Form’s array element in javascript

How to access form’s array element in javascript? Web Post Mobile Post Application Post Open Source Post Solution: <form action=”<?=$_SERVER[‘PHP_SELF’]?>” method=”post”> <input name=”post[]” type=”checkbox” value=”web” /> Web Post <input name=”post[]” type=”checkbox” value=”mobile” /> Mobile Post <input name=”post[]” type=”checkbox” value=”application” />Application Post <input name=”post[]” type=”checkbox” value=”open” /> Open Source Post </form> <script type=”text/javascript”> for(i=0;i { if(document.sv.elements[i].type==”checkbox” … Read more