Search this blog

Home Download Tips Our Stores About

Adbrite

Your Ad Here

Hot Offers


Masukkan Code ini K1-2BE745-X
untuk berbelanja di KutuKutuBuku.com

Visit Our Sponsor

Tuesday, July 6, 2010

How to change font size using Javascript  

var min=11;
var max=16;
function increaseFontSize() {
var p = document.getElementById('storyDiv');

if(p.style.fontSize) {
var s = parseInt(p.style.fontSize.replace("px",""));
} else {
var s = 12;
}
if(s!=max) {
s += 1;
}
p.style.fontSize = s+"px";

}


function decreaseFontSize() {
var p = document.getElementById('storyDiv');

if(p.style.fontSize) {
var s = parseInt(p.style.fontSize.replace("px",""));
} else {
var s = 12;
}
if(s!=min) {
s -= 1;
}
p.style.fontSize = s+"px";

}



Read more...

How to fix tiny slideshow clickable in ie  

Ah that's the problem, I see. That doesn't work here either, but I can tell you why and how to fix it: For some reason IE won't fire onmouseovers on empty divs, unless the mouse is moved over a visible border. You can solve your problem by simply putting a transparent image in the background.

Create a 1×1 pixel transparent .gif (I'll call it 'blank.gif'), put it where your .css is, change the lines


#imglink {position:absolute; height:306px; width:100%;
z-index:100; opacity:.4;filter:alpha(opacity=40)}
.linkhover {background:url(images/link.gif)
center center no-repeat}



to:

#imglink {background:url(blank.gif) repeat;
position:absolute;height:306px; width:100%;
z-index:100; opacity:.4;filter:alpha(opacity=40)}
.linkhover {background:url(images/link.gif)
center center no-repeat !important}



Read more...

How to send parameter into include in PHP  

This will not work
include('communities.php?show=gated&where=naples');
?>

.

However this will
$_GET = array();
$_GET['show'] = 'gated';
$_GET['where'] = 'naples';
include('communities.php');
?>

Putting this on your page and nothing else will give the same result as
going to 'communities.php?show=gated&where=naples' but the URL can be
whatever you want it to be.



Read more...

Best Seller