Hi,
I write a code like this,
<style type="text/css">
<!--
#PageTitleDisplay { border: black 1px solid; position:relative; width:36px; height:10px; z-index:1; visibility:visible; background-color:#333333; layer-background-color:#333333; }
//-->
</style>
<div id="PageTitleDisplay"><img src="/images/shim.gif" width="36" height="16" border="0"></div>
The background-color in #PageTitleDisplay can be change with other popup color_picker page with javascript code.
the problem is here.I want to pass the value of background-color in #PageTitleDisplay to a php varible
and save the value to mysql database.I update the database when the background-color is changed.
but I do not how to pass the value from CSS style variable to a php variable now
for example the format maybe like this code.
<?php
$page_color=document.PageTitleDisplay.background-color;
?>
but the format like document.PageTitleDisplay.background-color only can used in javascript block.
I do not know how to include javascript block(<script language="javascript"> ..; </script>) to php block
(<?php ... ; ?>).
please help me and let me know how to pass the value from CSS style variable to a php variable.
Thanks a lot.