I have this on my website, however the Java doesn't work. Can someone take a look at it?
<div id="gw_wallpaperoftheday_pc"><a href="javascript:gwGetPreview_pc();"><img src="http://www.gamewallpapers.com/wallpaperoftheday/wallpaperoftheday_pc.jpg" width="120" height="90" border="0" onError="document.all.gw_wallpaperoftheday_pc.style.visibility='hidden';"></a><br></div>
<script>
function gwGetPreview_pc() { url = "http://www.gamewallpapers.com/wallpaperoftheday/getpreview.php?type=pc";
ipwindow = window.open(url,"_blank","fullscreen=no,resizable=no,scrollbars=no,toolbar=no,height=316,width=400");
}
</script>
Are you trying to use it in a block? It it not working at all? I put it in a block on my test site and it showed a thumbnail of something. What is it supposed to do that is not working for you?
It works..it was A King Kong wallpaper in various sizes...
It is supposed to have a thumbnail. If you click on it, a larger version of the image is shown.
That's exactly what it does on my test site. Wanna take a look?
http://www.tmrules.com/beta/
Hm. I don't get that. I just get "Error on Page"
You choose html/javascript as your block type?
Ah..I think I just chose HTML
You can center the image up in the block as well, using align inserted into the 1st bit of the code -
<div align="center" id="gw_wallpaperoftheday_pc">
Hope this helps.
I just tried it out and it works perfectly
i get this when i put it into a html / bbc box (i dont have a javascript box guys wtf!!!)?
Wallpaper of the day
<div id="gw_wallpaperoftheday_pc"><a href="javascript:gwGetPreview_pc();">[/url]
</div>
<script>
function gwGetPreview_pc() { url = "http://www.gamewallpapers.com/wallpaperoftheday/getpreview.php?type=pc";
ipwindow = window.open(url,"_blank","fullscreen=no,resizable=no,scrollbars=no,toolbar=no,height=316,width=400");
}
</script>
it just shows the code, the top writing with the daily wallpaper is the block header
The "scriptbox" block must be used for (X)HTML and/or JavaScript language scripts.
thanks nikki just tried it but i still get
Wallpaper of the day
<div id="gw_wallpaperoftheday_pc"><a href="javascript:gwGetPreview_pc();"><img src="http://www.gamewallpapers.com/wallpaperoftheday/wallpaperoftheday_pc.jpg" width="120" height="90" border="0" onError="document.all.gw_wallpaperoftheday_pc.style.visibility='hidden';"></a>
</div>
<script>
function gwGetPreview_pc() { url = "http://www.gamewallpapers.com/wallpaperoftheday/getpreview.php?type=pc";
ipwindow = window.open(url,"_blank","fullscreen=no,resizable=no,scrollbars=no,toolbar=no,height=316,width=400");
}
</script>
The terminating "[/url]" tag should not be present. You are also missing portions of the script! On top of that, I don't believe BBC tags are rendered in "scriptbox" blocks.
got any idea why i get this when i rmove the url tag?:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, mysite@mysite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.37 Server at " mysite" Port 80
OMG why do i get this error al the time now whenever i try add this code, whats going on!!!!! i hate the net and it all happened when i used ur code too LOL
You MUST use codetags when you pasting in code in the post.
If you dont the posting will render the post and put in bbc tags where they dont belong.
Also please read the posting guide for this forum, one of the sticky posts clearly say NO support in the block code and snippets board.
This is in support! well it is now anyway, so now since i'ts in support you can help me.
got any idea why i get this when i rmove the url tag?:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, mysite@mysite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.37 Server at " mysite" Port 80
OMG why do i get this error all the time now whenever i try add scriptbox code into TP? sometimes happens on my domain name too
bump
Jordan, please don't bump the thread so soon, it's only been 1.5 hours.
Someone will try and give you an answer, you just have to give us time enough to get back to you.
Thanks... Ken.
Internal server error usually means that it's the host that needs to change some configuration.
It might be that you are running on safe mod, or even "external" urls are not permitted.