The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Javascript doesn't work!

View previous topic View next topic Go down

Javascript doesn't work!

Post by xx3004 on January 12th 2011, 8:59 pm

Hi guys, I'm new here and I'm expecting some help xD

I try to make a bulletin board that update the news for the forum:

http://xx3004.niceboard.com/

I try to make a simple text just for testing:

Code:

<div id="bullentinBoard" style="position: absolute; top:0; left: 0;">
Hello everyone this is a new test xD
</div>

And then I try to adjust their properties:
Code:

<script language="javascript">
//I'm using Firefox, this code works for sure, I just simplify it!
document.getElementById("bullentinBoard").style.top=300;
document.getElementById("bullentinBoard").style.left=300;
</script>

And the problem is I can't adjust its height or width or top or left.... because in the source page, it lays under the <div id="left"> layer!

So I need some help for moving and adjusting my Bulletin board div!

Thanks guys in advanced!

xx3004
New Member

Male Posts : 13
Reputation : 0
Language : English, Vietnamese

http://xx3004.forumotion.com

Back to top Go down

Re: Javascript doesn't work!

Post by Guest on January 12th 2011, 11:53 pm

It's not working because with any CSS measurement value other than ZERO, you need to specify a measurement type (px, pt, em, %).

Guest
Guest


Back to top Go down

Re: Javascript doesn't work!

Post by xx3004 on January 12th 2011, 11:54 pm

@Dion wrote:It's not working because with any CSS measurement value other than ZERO, you need to specify a measurement type (px, pt, em, %).
Could you please show me details?

xx3004
New Member

Male Posts : 13
Reputation : 0
Language : English, Vietnamese

http://xx3004.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum