css expression?
-
hi all, how can i link js file to css file? to do this //cssfile font { font-size:expression(setFontags(this.currentStyle.fontSize)); } // js file containing the function setFontags function setFontags(x){ var y={1:10,2:13,3:16,4:18,5:24,6:32,7:48}; return y[x]+'px'; thx.
-
hi all, how can i link js file to css file? to do this //cssfile font { font-size:expression(setFontags(this.currentStyle.fontSize)); } // js file containing the function setFontags function setFontags(x){ var y={1:10,2:13,3:16,4:18,5:24,6:32,7:48}; return y[x]+'px'; thx.
Hi, In your css file write
.font
{
font-size:expression(Test());
}In your external Js file write
function Test()
{
return "10 px";
}In head section f your page write
;
</pre>
<div class="ForumSig">himanshu</div></x-turndown>
-
Hi, In your css file write
.font
{
font-size:expression(Test());
}In your external Js file write
function Test()
{
return "10 px";
}In head section f your page write
;
</pre>
<div class="ForumSig">himanshu</div></x-turndown>
Thx for u r replay! but. i walked throw this method to overcome modifying too many files , what i need is changing the font size from points to pix without modifing all aspx pages, because of that m trying to find a way to link css file to external javascript file. ---css file ----
/*m trying to do this inside css file */
<script type="text/javascript" language="javascript" src="JScript.js">/* to be able to call */ expression(Test());