5 Topics

Member Avatar for
Member Avatar for tibormarias

Dear Sirs, I have been playing around with this so far, and couldn't get a good solution. Well I have my simple code : <html> <body> <a href="#" onClick="document.write('P');>P</a> <div id="a">a</div> </body> </html> Well, normally, this onClick event directs us to a new empty page showing a 'P'. I want …

Member Avatar for JorgeM
0
1K
Member Avatar for Dani

Even though it's incredibly bad practice, most advertising servers still use document.write. It's terrible because placing `<script type="text/javascript" src="http://www.ad-server.com/foo.js" />` where you want the ads to appear is page blocking. I'm trying to move the script tag to the very bottom of the page (so at least everything above it …

Member Avatar for Troy3
0
2K
Member Avatar for freakybeavis

Admittedly I am only a beginner at playing with java but I'm pulling my hair out trying to understand something I thought would be easy, and it probably is. Trying to write code that randomly selects from 3 preloaded arrays and spits out the results. Mechanically the code seems to …

Member Avatar for javaAddict
0
156
Member Avatar for Joe34

I keep getting undefined with this script... I [CODE]document.getElementById(new_id).style.top = Top; //Works Fine document.getElementById(new_id).style.left = Left; //Works Fine document.getElementById(new_id).style.backgroundColor = Background_Color; //Works Fine document.getElementById(new_id).style.border = Border_Width+" "+Border_Type+" "+Border_Color; //Works Fine new_code = document.getElementById(new_id); //Doesn't Work!!!! document.write(new_code.value);[/CODE] I style the element correctly, but when I want to write it I keep …

Member Avatar for ko ko
0
4K
Member Avatar for tekboi

I'm trying switch the twitter javascript widgets out depending on the time. So in the day, the twitter widget will be colored differently than at night. I used the code that twitter gave me and came up with this code. But I get a syntax error in DW on the …

Member Avatar for Taywin
0
190

The End.