
Originally Posted by
ubernoobz
<a href="javascript:ModGame('noob')" title='Your a newb!'>
<img src="noob.gif">
Even allowing the
href="javascript: . . ."
convention which has numerous drawbacks but does usually work, you haven't closed your anchor tag. This can cause real problems at times. Unless you want to provide alternate content for non-javascript enabled browsers, you don't even need an anchor tag:
HTML Code:
<span style="cursor:pointer;" onclick="ModGame('noob');" title="Your a newb!"><img src="noob.gif"></span>
This bit needs a type attribute:
Code:
<script type="text/javascript" src="http://www.hahanoobies.com/noobtoob.jhtm"></script>
and:
Code:
http://www.hahanoobies.com/noobtoob.jhtm
must work out to be a valid javascript with all paths to its external resources (if any) absolute or relative to the page that is using it - and be available on (via the script tag) and to the page that is using it.
.jhtm isn't an extension I recognize. If it isn't required for server-side execution, best to use .txt or, better yet, .js and rename the source file accordingly. If it isn't on your domain and you don't have permission to use it, domain checking may be preventing it from functioning except on its home site or on a local implementation.
Bookmarks