//save everything up to "SCRIPT;" in the variable $js
$js<<<SCRIPT
<script language="javascript" type="text/javascript">
jQuery(document).ready(function() {
$('#countdown_dashboard').countDown({
targetDate: {
'day': 17,
'month': 9,
'year': 2010,
'hour': 1,
'min': 0,
'sec': 0
}
});
});
</script>
SCRIPT;
/*note the line where you see "SCRIPT;" MUST end with a semicolon IMMEDIATELY followed by a NEWLINE. If you leave spaces, you will get a runtime error. */
//now echo the javascript.
echo $js;
hielo
Veteran Poster
1,124 posts since Dec 2007
Reputation Points: 116
Solved Threads: 244
line 2 is missing an equal sign. It should be:
$js=<<<SCRIPT
>>Hey Thanks Great Help
Glad to help
PS: Be sure to mark the thread as solved.
hielo
Veteran Poster
1,124 posts since Dec 2007
Reputation Points: 116
Solved Threads: 244