This code runs perfectly when i test it on dreamweaver or just plain notepad. But when i paste these lines of code onto my <a href="http://www.ziked.com">tumblr</a> theme, they dont work anymore. Any idea why??
<head>
<script language=“JavaScript”>
var backColor = new Array();
backColor[0] = ’#FF9900’;
backColor[1] = ’#6498cc’;
function changeBG(whichColor){
document.bgColor = backColor[whichColor];
}
</script></head>
<body>
<a href=“javascript:changeBG(0)”>Orange</a>
<a href=“javascript:changeBG(1)”>Blue</a>
</body>
If it helps, I still have the non-working javascipt on my site - ziked.com
| Forum legend: | |
| Locked thread | |
| Moderator | |
![]() |
CNET staff |
![]() |
Samsung staff |
| Norton Authorized Support team | |
| AVG staff | |
| Windows Outreach team | |
![]() |
Dell staff |
| Intel staff | |