Hi
I am new to javascript and I have this code I vwon to manipulte.
<script type="text/javascript">
$(document).ready(function(){
$(".flip").click(function(){
$(".panel").slideToggle("fast");
});
$(".flip1").click(function(){
$(".panel1").slideToggle("slow");
$(".panel1new").slideToggle("slow");
link.innerHTML = 'ExpandEERRRRRRRRRRRRRRRRRR';
});
$(".flip2").click(function(){
$(".panel2").slideToggle("slow");
});
});
</script>
- <script type="text/javascript">
- $(document).ready(function(){
- $(".flip").click(function(){
- $(".panel").slideToggle("fast");
- });
- $(".flip1").click(function(){
- $(".panel1").slideToggle("slow");
- $(".panel1new").slideToggle("slow");
- link.innerHTML = 'ExpandEERRRRRRRRRRRRRRRRRR';
- });
- $(".flip2").click(function(){
- $(".panel2").slideToggle("slow");
- });
-
-
- });
- </script>
What I won to do?
I have a div there is trigged by an element <p></p> but it could by others.
But I won it to collapse the "div" and open another same place and the tricky part.
all others link on my pace need to be a part of it.
lets say. my news-box is open when your enter the site. You those not to close it but hit one of my links, i won the div to collapse and open the hidding div and if you collapse it when your enter the site it need to be closed down.
Because I have a lot of link there schould open in the div-hidden and not in the "NEWS" box. only to boxes.
Please help me further.