@balloonbuffoonApr 13.2006 — #I believe you asked this question before a couple days ago, yes? Well I still don't understand what you're asking. Please provide an example of what you are referring to or clarify what you're asking for.
See the problem is very simple, i have the code (2) that run normally in the page but when i try to execute code (1), without "<href=..." the javascript code don´t execute to produce me the same result of (2) but why?
(1)
<html>
<head>
</head>
<body>
.....
<?
function scrollbars(){
// eix: (Y=horizontal) (X=vertical)
print
"<SCRIPT language=JavaScript>
function hidden()
{document.body.style.overflow='hidden';}
function unhidden()
{document.body.style.overflow='';}
</SCRIPT>";
}
?>
....
....
print "<script> hidden(); </script>
...
...
(2)
<?
print "<a href='javascript:unhidden()'><sup><img src='images/scrollbar_on.gif' border=0 alt='ativar barra de rolagem'></sup></a>
<a href='javascript:hidden()'><sup><img src='images/scrollbar_off.gif' border=0 alt='desativar barra de rolagem'></sup></a>";
See the problem is very simple, i have the code (2) that run normally in the page but when i try to execute code (1), without "<href=..." the javascript code don´t execute to produce me the same result of (2) but why?
(1)
<html>
<head>
</head>
<body>
.....
<?
function scrollbars(){
// eix: (Y=horizontal) (X=vertical)
print
"<SCRIPT language=JavaScript>
function hidden()
{document.body.style.overflow='hidden';}
function unhidden()
{document.body.style.overflow='';}
</SCRIPT>";
}
?>
....
....
print "<script> hidden(); </script>";
...
...
(2)
<?
print "<a href='javascript:unhidden()'><sup><img src='images/scrollbar_on.gif' border=0 alt='ativar barra de rolagem'></sup></a>
<a href='javascript:hidden()'><sup><img src='images/scrollbar_off.gif' border=0 alt='desativar barra de rolagem'></sup></a>";