[thelist] document.getElementById has no properties
VOLKAN ÖZÇELİK
volkan.ozcelik at gmail.com
Tue Sep 20 05:32:18 CDT 2005
try
window.onload = function() {
document.getElementById("bottomback").appendChild(...);
};
---
As a side note:
using the href attribute in this manner:
href="<?echo> $Back_Link?>;showmouse();"
for the anchor tag (that is to say assigning a pseudo-protocol to the
href) is not the most correct usage.
At the least extreme you may assign the method to the onclick event.
HTH,
Volkan.
2005/9/20, Vinayakam Murugan <mvinayakam at gmail.com>:
> Hi
>
> I am trying to append a preloaded image to a tag. It is giving me the
> following error
>
> Error: document.getElementById("bottomback") has no properties
> Source File:
> http://192.168.100.11/app_dir/layout/preload.php?Language_Id=01&Class_Id=first
> Line: 63
>
> ------------------------------------------
> <a id="bottomback" name="bottomback" class="back" href="<?echo
> $Back_Link?>;showmouse();"></a>
>
> <script type="text/javascript">
> document.getElementById("bottomback").appendChild(top.bottombar
> [1][<?=$Language_Id?>]);
> </script>
>
> ------------------------------------------
>
> Any ideas, I have googled but it didn't help much.
>
> --
> Warm Regards
> ~~~~~~~~~~~~~~~
> Vinayak
> http://theregoesanotherday.blogspot.com/
> --
>
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>
More information about the thelist
mailing list