TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

June 05, 2023, 09:37:18 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 194,367
  • Total Topics: 21,157
  • Online today: 110
  • Online ever: 3,540
  • (September 03, 2022, 01:38:54 AM)
Users Online
Users: 1
Guests: 70
Total: 71

Wallpapers.com

Started by clickbouyow, December 23, 2005, 11:39:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

clickbouyow

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>

IchBin

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?

crip

It works..it was A King Kong wallpaper in  various sizes...

clickbouyow

It is supposed to have a thumbnail.  If you click on it, a larger version of the image is shown.

IchBin

That's exactly what it does on my test site. Wanna take a look?

http://www.tmrules.com/beta/

clickbouyow

Hm.  I don't get that.  I just get "Error on Page"

IchBin

You choose html/javascript as your block type?

clickbouyow

Ah..I think I just chose HTML

frisp

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.

babjusi

I just tried it out and it works perfectly