Post new topic Reply to topic  [ 9 posts ] 

Board index : Music Talk : Rock/Pop

Author Message
 Post subject: HTML question
PostPosted: Fri May 27, 2005 3:30 pm 
Offline
frostingspoon

Joined: Thu Nov 04, 2004 2:36 pm
Posts: 10198
i'm a self taught programer, and i don't know much about anythng.
i get all my code on HTML for kids sites, and by stealing from sites i like.

anyway, on the front page of my webstie i have two link to other sites, and i want the links to open up in a new page. i've done this before - and i used that same code, but it doesn't seem to be working on my front page.

can anyone udnerstand why?

here is the code for the right side of my front page:

www.fishstickusa.com

Code:
<HTML>
<TITLE>fishstick and so forth</TITLE>
<body bgcolor="660000">

<br>

<img src="buttons.png" width="550" height="268">

<link href="format.css" rel="stylesheet" type="text/css">
<body bgcolor="660000">
<font face="your font" size="2" color="ffffff"> <b>
<br><br> <SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=800,height=600,toolbar=yes,location=yes,  resizable=yes, scrollbars=yes');
return false;
}
//--></SCRIPT>

what's new:<br>


<br>
* a new review at shmat.com <font face="arial" size="2" color="ffffff"> <a href="http://www.shmat.com/reviews.php?page=detail&rev=273">link</a><br>
* a new song "tired smiles" is available for download in the mp3's section - <font face="arial" size="2" color="ffffff"> <a href="music.html" target="rightside">link</a><br>
* a new song "worker bee" is available for download in the mp3's section - <font face="arial" size="2" color="ffffff">
<a href="music.html" target="rightside">link</a><br>
* a new show has been announced at Fergies Pub on Saturday, June 25th - <a href="shows.html" target="rightside">link</a><br>
* new photographs from the April 29th World Cafe Live show have been posted - <a href="world.html" target="rightside">link</a><br><br>




* the new album "professional fishstick" is available for purchase at cdbaby.com <font face="arial" size="2" color="ffffff"> <a href="http://www.cdbaby.com/fishstick">link</a>

</table>
</font>
</HTML>

_________________
http://www.cdbaby.com/fishstick2


Back to top
 Profile  
 
 Post subject:
PostPosted: Fri May 27, 2005 3:41 pm 
Offline
Major Label Sell Out

Joined: Thu Dec 02, 2004 12:35 pm
Posts: 1997
Location: H-Town
Dreamweaver has behaviors that do this for you. I looked at the code created withing DW for this function on a site I'm working on and this is what it gives you:

onClick="MM_openBrWindow('xxxx.html','','width=485,height=445')"></a></td>

This string is located immediately after the dimensions for the cell I have my image located in (which is my link to the popup window). The dimensions in the above string indicate what size you want the new window to open up as. I have no idea if this helps or not.

_________________
frosted Wrote:
But, Juice, since yr both batshit and guilty, I guess s'alright.


Back to top
 Profile  
 
 Post subject:
PostPosted: Fri May 27, 2005 3:44 pm 
Offline
Go Platinum
User avatar

Joined: Mon Oct 25, 2004 8:37 pm
Posts: 7618
Location: Knee-deep and sinking
Your function "popup" looks ok, but unless I'm missing something you're not calling it...


Back to top
 Profile  
 
 Post subject:
PostPosted: Fri May 27, 2005 4:06 pm 
Offline
frostingspoon

Joined: Thu Nov 04, 2004 2:36 pm
Posts: 10198
juice Wrote:
Dreamweaver has behaviors that do this for you. I looked at the code created withing DW for this function on a site I'm working on and this is what it gives you:

onClick="MM_openBrWindow('xxxx.html','','width=485,height=445')"></a></td>

This string is located immediately after the dimensions for the cell I have my image located in (which is my link to the popup window). The dimensions in the above string indicate what size you want the new window to open up as. I have no idea if this helps or not.


where would i put that code?

_________________
http://www.cdbaby.com/fishstick2


Back to top
 Profile  
 
 Post subject:
PostPosted: Fri May 27, 2005 4:10 pm 
Offline
Major Label Sell Out

Joined: Thu Dec 02, 2004 12:35 pm
Posts: 1997
Location: H-Town
Try replacing your javascript maybe...?

It sounds wierd, but the Dreamweaver code did not have any specified javascript commands in it, just the above string. I would place it right after your "link" in place of the whole javascript. Make sure to put in the appropriate url you want to call up.

_________________
frosted Wrote:
But, Juice, since yr both batshit and guilty, I guess s'alright.


Back to top
 Profile  
 
 Post subject:
PostPosted: Fri May 27, 2005 4:24 pm 
Offline
frostingspoon
User avatar

Joined: Sat Oct 23, 2004 1:38 pm
Posts: 10237
Location: Hill
First, you don't need JavaScript for this unless the new window properties are really important to you. Just put target="new" in your <a> tag. If you want to use javascript, Max is right. You're not calling popup. Replace your existing link with this:

Code:
<a onClick="popup('music.html','rightside');">link</a>


I think that's right anyway. I hate debugging javascript.


Back to top
 Profile  
 
 Post subject:
PostPosted: Fri May 27, 2005 4:46 pm 
Offline
frostingspoon

Joined: Thu Nov 04, 2004 2:36 pm
Posts: 10198
HaqDiesel Wrote:
Just put target="new" in your <a> tag. .


this is the easy answer i was looking for.

perfect, thanks!

here is the fruit of our labor.

http://www.fishstickusa.com/

_________________
http://www.cdbaby.com/fishstick2


Back to top
 Profile  
 
 Post subject:
PostPosted: Fri May 27, 2005 5:57 pm 
Offline
Winona Ryder wears my t-shirt on TV
User avatar

Joined: Tue Nov 09, 2004 8:30 pm
Posts: 2563
Location: Place where it is to be
jewels santana Wrote:
http://www.fishstickusa.com/

I love the paintings. Just had to say it.

_________________
People in a parade are cocky, you know. They think that they attracted an audience but really it's just people waiting to cross the street. I could attract a crowd if I stood in everybody's way.

--Mitch Hedberg


Back to top
 Profile  
 
 Post subject:
PostPosted: Fri May 27, 2005 6:04 pm 
Offline
frostingspoon

Joined: Thu Nov 04, 2004 2:36 pm
Posts: 10198
tcj Wrote:
jewels santana Wrote:
http://www.fishstickusa.com/

I love the paintings. Just had to say it.


hey thanks man.
i appreciate that.

i'll have a bunch more up on the stie after my show in September.

_________________
http://www.cdbaby.com/fishstick2


Back to top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

Board index : Music Talk : Rock/Pop


Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Style by Midnight Phoenix & N.Design Studio
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.