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,973
  • Latest: NonStop
Stats
  • Total Posts: 196,230
  • Total Topics: 21,353
  • Online today: 446
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 185
  • Total: 185

javascript on portal block

Started by lyer, July 27, 2009, 06:03:43 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ZarPrime

#10
lyer,

Sorry, I had to sleep for a few hours.  You don't have to put the url and the name in the script itself, only in the link at the bottom.  Here's the code ...

<script type="text/javascript">
<!--
var newwindow;
function poptastic(url)
{
  newwindow=window.open(url,'name','height=600,width=800');
  if (window.focus) {newwindow.focus()}
}
// -->
</script>
<a href="javascript:poptastic('http://Your_Site.net/Radio/Mp3Stream/index.html');">Radio</a>


LMK when you have it, as I'm going to change the link.

ZarPrime

lyer

WOW thanks ZarPrime, your a genius...thank you so much

ZarPrime

@ lyer, NP.  Glad it works for you.  Marked solved. :up:

ZarPrime

This website is proudly hosted on Crocweb Cloud Website Hosting.