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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,972
  • Latest: Lineo
Stats
  • Total Posts: 196,101
  • Total Topics: 21,345
  • Online today: 1,178
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 231
  • Total: 231

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

Jordan

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

Nikki Sixx

The "scriptbox" block must be used for (X)HTML and/or JavaScript language scripts.

Jordan

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>

Nikki Sixx

#13
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.

Jordan

#14
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

G6Cad

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.

Jordan

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

Jordan


Ken.

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.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

G6Cad

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.