Hi,

I asked this question before, but maybe it wasn't clear enough

I wish to be able to access thes stylesheet properties of the current
page from within the DynAPI

Code Example
--------------->8------------>8------------->8------>8------------>8--------
---
<html>
<head>
<style type="text/css">
<!--

                #mainPage {
                        background: #9ABB56;
                        background-color: #9ABB56;
                        }

-->
</style>
<script language="Javascript" src="javascript/dynapi.js"></script>
<script language="Javascript">

DynAPI.setLibraryPath('javascript/lib/')

DynAPI.include('dynapi.api.*')
DynAPI.include('dynapi.gui.*')


function loadPage () { 

        
        superC = new DynLayer();
        this.document.addChild(superC);
        superC.setSize(100,200);
        superC.moveTo(30,30)
        //-------------------------------------------
        // Here is where I want to access the stylesheet property
        // mainPage.background-color
        
        // superC.setBgColor(??????????)

        // 
        //
        //-------------------------------------------

 }


DynAPI.onLoad=loadPage

</script>
</head>

<body link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF" bgcolor="#ffffff">
<span id="scrollgenerator"
style="position:relative;top:100%;left:100%"></span>
</body>
</html>
--------------->8------------>8------------->8------>8------------>8--------
---


------------------------------------------------
Ramon Buckland
Applications Engineer

email: [EMAIL PROTECTED]
web:   www.f5.com.au
phone: (07) 3257 7900
fax:   (07) 3257 7955

f5. Make the Medium Work. Simple.
------------------------------------------------


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to