PDA

View Full Version : Tabcontent script & deferred script help



Dazza30
04-11-2008, 07:54 PM
1) Script Title:

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm

3) Describe problem: Ive been calling external javascript for each of my tabs which i have deferred to the end of my page to help load times.

This worked fine when calling one script now im calling three its not showing anything after tab 6.

I have given each script a div id which i have highligted in red below.


<div id="tcontent2" class="tabcontent"><div id="ViewtyBlackdealsVodafone"></div><div id="ViewtySilverdealsVodafone"></div><div id="ViewtyPurpledealsVodafone"></div></div>

<div id="tcontent3" class="tabcontent"><div id="ViewtyBlackdealsT-Mobile"></div><div id="ViewtySilverdealsT-Mobile"></div><div id="ViewtyPurpledealsT-Mobile"></div></div>
<div id="tcontent4" class="tabcontent"><div id="ViewtyBlackdealsO2"></div><div id="ViewtySilverdealsO2"></div><div id="ViewtyPurpledealsO2"></div></div>
<div id="tcontent5" class="tabcontent"><div id="ViewtyBlackdealsOrange"></div><div id="ViewtySilverdealsOrange"></div><div id="ViewtyPurpledealsOrange"></div></div>
<div id="tcontent6" class="tabcontent"><div id="ViewtyBlackdealsThree"></div><div id="ViewtySilverdealsThree"></div><div id="ViewtyPurpledealsThree"></div></div>
<div id="tcontent7" class="tabcontent"><div id="ViewtyBlackdealsIpodTouch"></div><div id="ViewtySilverdealsIpodTouch"></div><div id="ViewtyPurpledealsIpodTouch"></div></div>
<div id="tcontent8" class="tabcontent"><div id="ViewtyBlackdealsNintendoWii"></div><div id="ViewtySilverdealsNintendoWii"></div><div id="ViewtyPurpledealsNintendoWii"></div></div>
<div id="tcontent9" class="tabcontent"><div id="ViewtyBlackdealsXbox360"></div><div id="ViewtySilverdealsXbox360"></div><div id="ViewtyPurpledealsXbox360"></div></div>
<div id="tcontent10" class="tabcontent"><div id="ViewtyBlackdealsSonyPSP"></div><div id="ViewtySilverdealsSonyPSP"></div><div id="ViewtyPurpledealsSonyPSP"></div></div>
<div id="tcontent11" class="tabcontent"><div id="ViewtyBlackdealsSatNav"></div><div id="ViewtySilverdealsSatNav"></div><div id="ViewtyPurpledealsSatNav"></div></div>

Dazza30
04-11-2008, 07:58 PM
Also this is these are some of the references to the called external scripts im using


<script type="text/javascript"src="http://www.urmob.co.uk/content/table.php?id=dazza30&model=745&network=Vodafone&showlogo=1&max=999&nolinks=1&sortpop=1&nodeals=Sorry+there+are+no+Vodafone+mobile+deals+available+for+the+LG+Ku990+Viewty+Black+mobile+phone&target=ViewtyBlackdealsVodafone"defer="defer"></script>
<script type="text/javascript"src="http://www.urmob.co.uk/content/table.php?id=dazza30&model=840&network=Vodafone&showlogo=1&max=999&nolinks=1&sortpop=1&nodeals=Sorry+there+are+no+Vodafone+mobile+deals+available+for+the+LG+Ku990+Viewty+Silver+mobile+phone&target=ViewtySilverdealsVodafone"defer="defer"></script>
<script type="text/javascript"src="http://www.urmob.co.uk/content/table.php?id=dazza30&model=896&network=Vodafone&showlogo=1&max=999&nolinks=1&sortpop=1&nodeals=Sorry+there+are+no+Vodafone+mobile+deals+available+for+the+LG+Ku990+Viewty+Purple+mobile+phone&target=ViewtyPurpledealsVodafone"defer="defer"></script>

I havent got a live version of this because it doesnt work, if one is needed ill upoad it.

Dazza30
04-11-2008, 10:28 PM
Problem solved!