...

View Full Version : dynamic content code



cmw000
07-14-2005, 07:30 AM
does anyone have code for dynamic content that will work in conjunction with my exisiting scripts? i had a script that worked but for some reason it stopped working when i tried to pair it on a link with another one.


<script type="text/javascript">
//<![CDATA[
function doStuff(el) {

var links=document.getElementsByTagName("a");
for(i=0;i<links.length;i++) {
if(links[i].className=="white") {
links[i].style.color="#888";
}
}
el.style.color="#BC8F8F";
}
//]]>
</script>
that was to change the color of the links on each page


<script type="text/javascript">
<!--

function show_me(id){

document.getElementById("box2").innerHTML=document.getElementById(id).innerHTML

}

//-->
</script>
thats my code for dynamic content


<a class="white" href="recommendations.html" target="theframe" onclick="doStuff(this);show_me(quote1)" onfocus="this.blur()">RECOMMENDATIONS&nbsp&nbsp&nbsp&nbsp</a>
theres the function calls, only the first one works

bradyj
07-14-2005, 04:45 PM
This is more suited to the javascript forum, and my javascript is too weak to help out. I'll ask a moderator to move it for you!! :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum