Search for:
Jump to: 
Your Ad Here
Post new topic Reply to topic
Author Message
 Post subject: Disabling and enabling a block
PostPosted: Thu Nov 10, 2011 11:47 am 
Offline

Joined: Thu Sep 15, 2011 5:12 am
Posts: 2
Hello Friends,

Enabling and Disabling the blocks using java script is too easy... I am providing a sample functionality for this.

//write the below code in head section.
<script type="text/javascript">
function display_div(){
document.getElementById('hide_div').style.display="block";
}

function hide_div(){
document.getElementById('hide_div').style.display="none";
}

</script>


// write the below code in body section

<a action="#" onmouseover="display_div()" onmouseout="hide_div()"> Hi...</a>
<div id="hide_div">How Are You...? </div>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic    [ 1 post ] 

1, 2, 3, 4, 5 ... 413
Recent topics  Replies   Views   Last post 
No new posts Ecommerce website development and website Design

by iweballey » Fri May 17, 2013 7:15 am in PHP-Code Help

0

79

Fri May 17, 2013 7:15 am

iweballey View the latest post

No new posts How to upgrade and migrate Joomal site

by mallikharjuna rao » Mon Jan 21, 2013 1:40 pm in Joomla

1

342

Thu May 16, 2013 9:53 am

sunitha12 View the latest post

No new posts Benefits of PHP

by hirephpexpert » Fri Sep 07, 2012 4:41 am in CakePHP

6

1565

Wed May 15, 2013 6:25 am

PrettyPrincesG View the latest post

No new posts How to stop user from getting registered in Joomla

by mallikharjuna rao » Tue Jan 22, 2013 5:16 am in Joomla

3

1458

Wed May 15, 2013 6:17 am

PrettyPrincesG View the latest post

No new posts How to write a query in social engine

by fathima_sony » Tue Sep 06, 2011 12:34 pm in Others

2

1754

Tue May 14, 2013 12:09 pm

sanath123 View the latest post


Your Ad Here