WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 help please, noname, November 28, 2003
     Re:help please, Gui Blanco, November 28, 2003
     Re:help please, Guilherme Blanco, November 28, 2003
         Re:help please, noname, November 29, 2003
             Re:help please, Erik Arvidsson, November 29, 2003
             Re:help please, Guilherme Blanco, November 29, 2003

Subject: Re:help please From: noname Date: November 29, 2003

:(     is it not what I meant

I want something like this:

<script>

var myWidth = 10;

</script>

<style>

.myStyle {

        width: &myWidth;

}

</stile>

because I want, at loading the page not to use a finction to pass to all colection for resetting the width of alot of elements, and I want the user to set the width just once in the script part.

I saw somewere something like that but I do not remember it right.

Thank you any way!!


 

From: Guilherme Blanco
Sent: November 28, 2003
Subject: Re:help please

Here is the code:

<span id="span_element">Something here</span>
<script>document.getElementById("span_element").style.width = myWidth + "px";</script>

Regards,
Gui Blanco

 




Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX