NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Hide show div problem

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 09-10-2006, 01:33 PM THREAD STARTER               #1 (permalink)
NamePros Member
 
jon21021985's Avatar
Join Date: Jan 2005
Location: United Kingdom
Posts: 75
jon21021985 is an unknown quantity at this point
 



Hide show div problem $15 to solve it


$15 to solve it!


Hi all, I am using this script to hide and show divs on my webpage, I want a dive to show on the left when a flash thumbnail is clicked and the previous div to be hidden.
????: NamePros.com http://www.namepros.com/programming/236642-hide-show-div-problem.html

this is what I have so far: http://www.design-direction.net/portfolio/index.html



I have this in my head section:

<script type="text/javascript">
function clearcontent() {
if (document.getElementById)
{
var style2 = document.getElementById("w1").style;
style2.display = "block";
var style3 = document.getElementById("w2").style;
style3.display = "none";
var style3 = document.getElementById("w3").style;
style3.display = "none";
var style3 = document.getElementById("w4").style;
style3.display = "none";
var style3 = document.getElementById("w5").style;
style3.display = "none";
var style3 = document.getElementById("w6").style;
style3.display = "none";
var style3 = document.getElementById("w7").style;
style3.display = "none";
var style3 = document.getElementById("w8").style;
style3.display = "none";
var style3 = document.getElementById("w9").style;
style3.display = "none";
var style3 = document.getElementById("w10").style;
style3.display = "none";
var style3 = document.getElementById("w11").style;
style3.display = "none";
var style3 = document.getElementById("w12").style;
style3.display = "none";
var style3 = document.getElementById("w13").style;
style3.display = "none";
var style3 = document.getElementById("w14").style;
style3.display = "none";
}
}
window.onload=clearcontent;

function toggleLayer(whichLayer,turnoff1,turnoff2)
{
if (document.getElementById)
{
// this is the way the standards work
var turnon = document.getElementById(whichLayer).style;
var turnoff1 = document.getElementById(turnoff1).style;
var turnoff2 = document.getElementById(turnoff2).style;
turnon.display = "block";
turnoff1.display = "none";
turnoff2.display = "none";
}
}
</script>




and I have this on each flash button that control if a div is vissable:

thumb1 -


on (release) {
getURL("javascript:toggleLayer('w1','w2','w3','w4' ,'w5','w6','w7','w8','w9','w10','w11 ','w12','w13','w14');");
}


thumb2 -

on (release) {
getURL("javascript:toggleLayer('w2','w1','w3','w4' ,'w5','w6','w7','w8','w9','w10','w11 ','w12','w13','w14');");
}


thumb3 -

on (release) {

getURL("javascript:toggleLayer('w3','w2','w1','w4' ,'w5','w6','w7','w8','w9','w10','w11 ','w12','w13','w14');");
}




and so on
Last edited by jon21021985; 09-10-2006 at 03:31 PM. Reason: added prize
jon21021985 is offline  
Old 09-11-2006, 11:57 AM THREAD STARTER               #2 (permalink)
NamePros Member
 
jon21021985's Avatar
Join Date: Jan 2005
Location: United Kingdom
Posts: 75
jon21021985 is an unknown quantity at this point
 



closed
jon21021985 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:16 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger