Advertisement

05.06.2008 at 05:10AM PDT, ID: 23379133
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Toggle Divs

I have 3 or 4 divs in the same place of the page which works like Yahoo home page tabs.
When I click on each div heading, i am able to see the content/body of the div. Just like tab menus and content.
Now i want to animate this divs, so instead of clicking on each tab title, let it show the divs one by one at a regular interval of time.

I have attached the existing code.

Any help is appreciated.
Thanks
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
<script language="javascript">
function ToggleTeaserIntro(strSelectedTeaser, altBg, newBg){
 
	var contentLayerName = strSelectedTeaser + "_content";
	var teaserNames = new Array("teaser_0","teaser_1","teaser_2","teaser_3");
	var teaserContentContainerNames = new Array("quick_facts_container", "safaries_reserves_container", "events_container", "discounts_container");
 
	for(var i=0; i <= teaserNames.length; i++){
 
		tempTeaserName = teaserNames[i];
		tempCCName = teaserContentContainerNames[i];
			
		if(tempTeaserName == strSelectedTeaser){
			document.getElementById(strSelectedTeaser).style.backgroundImage="url("+newBg+")";
			document.getElementById(tempCCName).style.visibility = "visible";
		}else{
			document.getElementById(tempTeaserName).style.backgroundImage="url("+altBg+")";
			document.getElementById(tempCCName).style.visibility = "hidden";
		}
	}
}
</script>
 
<!-- Teaser_Menu //-->
<div id="teaser_menu_container" style="position:absolute; left:200px; top:379px; z-index:100;">
<?
	$teaserMenuArray = Array("Quick Facts", "Safaris & Reserves", "Events", "Discounts");
?>
	<table cellspacing="0" cellpadding="0" border="0" width="601" height="22">
		<tr>
			<? 
				$teaserCount = count($teaserMenuArray);
				for($i=0; $i<$teaserCount; $i++){ 
 
					if((($i+1)< $teaserCount)){
						$bg = "bg_unclicked_any.gif";
						$newBg = "bg_clicked_any.gif";
						$bgWidth="150";
						$endElement = 0;
					}else{
						$bg = "bg_unclicked_end.gif";
						$newBg = "bg_clicked_end.gif";
						$bgWidth="151";
						$endElement = 1;
					}
 
					$element_id = "teaser_".$i;
					$bgFinal = $serverRoot."/art/teasers/".$bg ;
					$newBgFinal = $serverRoot."/art/teasers/".$newBg;
 
			?>
			<td valign="center" align="center" style="background-image:url(<?= $bgFinal ?>);" width="<?= $bgWidth ?>" height="22" id="<?= $element_id ?>">
				<a href="javascript:ToggleTeaserIntro('<?= $element_id ?>', '<?= $bgFinal ?>','<?= $newBgFinal ?>');" class="teaser_header"><?= $teaserMenuArray[$i]?></a></td>
			<? } ?>
		</tr>
	</table>	
</div>	
 
 
<!-- quick_facts //-->
<div id="quick_facts_container" style="position:absolute; left:200px; top:400px; z-index:99;">
	<table cellspacing="1" cellpadding="0" bgcolor="#666666" border="0">
		<tr>
			<td valign="top" bgcolor="#ffffff">
				<table cellpadding="0" cellspacing="0" width="599" height="180" border="0">
					<tr>
						<td height="10"><img src="<?= $serverRoot ?>/art/dummy.gif" width="1" height="10" border="0"</td>
					</tr>
					<tr>
						<td valign="top">
							<table cellpadding="5" cellspacing="0" border="0">
								<tr>
									<td valign="top"><img src="<?= $serverRoot ?>/art/vis_quick_facts.gif"></td>
 
									<td class="small" valign="top">The former French Cameroon and part of British Cameroon merged in 1961 to form the present country. Cameroon has generally enjoyed stability, which makes it one of Africas most promising Countries.</a> <a href="" class="small_orange">Read more
									<ul class="unorderedList_orange">
										<li> <a href="" class="small_orange">Provincies and Cities</a></li>
										<li> <a href="" class="small_orange">People and Cultures</a></li></ul></td>
								</tr>
							</table></td>
					</tr>
				</table></td>
		</tr>
	</table>
</div>
 
 
<!-- Safaris & Reserves //-->
<div id="safaries_reserves_container" style="position:absolute; left:200px; top:400px; z-index:99;">
	<table cellspacing="1" cellpadding="0" bgcolor="#666666" border="0">
		<tr>
			<td valign="top" bgcolor="#ffffff">
				<table cellpadding="0" cellspacing="0" width="599" height="180" border="0">
					<tr>
						<td height="10"><img src="<?= $serverRoot ?>/art/dummy.gif" width="1" height="10" border="0"</td>
					</tr>					
					<tr>
						<td valign="top">
							<table cellpadding="5" cellspacing="0" border="0">
								<tr>
									<td valign="top"><img src="<?= $serverRoot ?>/art/vis_safari_reserves.jpg"></td>
									
									<td class="small" valign="top">his is a must see for lovers of wildlife safari. With an area of 170000 hectares, it is crammed with a variety of savanna fauna, which makes it one of the most interesting parks in West Africa. <a href="" class="small_orange">Read more</a>
									<ul class="unorderedList_orange">
										<li><a href="" class="small_orange">The Waza Park</a></li>
										<li><a href="" class="small_orange">The Benue National Park</a></li>
										<li><a href="" class="small_orange">The Faro National Park</a></li></ul></td>
								</tr>
							</table></td>
					</tr>
				</table></td>
		</tr>
	</table>
</div>
 
 
<!-- EVENTS //-->
<div id="events_container" style="position:absolute; left:200px; top:400px; z-index:99;">
	<table cellspacing="1" cellpadding="0" bgcolor="#666666" border="0">
		<tr>
			<td valign="top" bgcolor="#ffffff">
				<table cellspacing="0" cellpadding="0" width="599" height="180" border="0">
					<tr>
						<td valign="center" align="center" class="small"> teaser content for EVENTS.</td>
					</tr>
				</table></td>
		</tr>
	</table>
</div>
 
 
<!-- discounts //-->
<div id="discounts_container" style="position:absolute; left:200px; top:400px; z-index:99;">
	<table cellspacing="1" cellpadding="0" bgcolor="#666666" border="0">
		<tr>
			<td valign="top" bgcolor="#ffffff">
				<table cellspacing="0" cellpadding="0" width="599" height="180" border="0">
					<tr>
						<td valign="center" align="center" class="small"> teaser content for DISCOUNTS.</td>
					</tr>
				</table></td>
		</tr>
	</table>
</div>
Start your free trial to view this solution
Related Solutions: animate Divs - on/off
Question Stats
Zone: Programming
Question Asked By: cyberwebservice
Solution Provided By: Mehuge
Participating Experts: 2
Solution Grade: A
Views: 0
Translate:
Loading Advertisement...
05.06.2008 at 05:24AM PDT, ID: 21506597

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 05:36AM PDT, ID: 21506670

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 05:53AM PDT, ID: 21506774

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 06:50AM PDT, ID: 21507251

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 07:04AM PDT, ID: 21507357

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 07:22AM PDT, ID: 21507493

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 07:25AM PDT, ID: 21507519

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 07:31AM PDT, ID: 21507562

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.11.2008 at 06:22AM PDT, ID: 21542397

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_EXPERT_20070906