Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Classic Skins (http://forums.winamp.com/forumdisplay.php?f=5)
-   -   a bit of winampmb.txt help please (http://forums.winamp.com/showthread.php?t=92877)

StillWater 30th June 2002 00:02

a bit of winampmb.txt help please
 
Can someone please tell me how to turn a picture (which is within the MB) into a clickable link?

Some info if you need it:
-The picture will be 397x89 pixels
-It will be right at the top of the MB, centered.
-so far, as far as the picture's concerned, I've just got this:

<p><img src="Mbinner.bmp" align="absmiddle" alt="Bla Bla Bla"></p>

Thanks :)

Mr_Tough_Guy 30th June 2002 00:16

I'm thinking

<a href="http://winamp.com"><img src="mbinner.bmp"></img></a>

then again I'm not to good with html, so I might be wrong

StillWater 30th June 2002 00:25

It works, but it creates a black border around the picture. Is there a way to get around that?

Mr_Tough_Guy 30th June 2002 00:32

you could try this, just change all the colours to match your background colour
<BODY bgcolor="#000000" text="#880000" link="#000000" alink="#000000" vlink="#000000">


there's probably a better way to do this, but hell if I know

StillWater 30th June 2002 00:44

All those things (vlink, alink, etc.) are already changed - so it's not them that's making the border. And as for changing the background colour to match the border - I can't because I need it a certain colour. :(

Mr_Tough_Guy 30th June 2002 00:51

well that's as far as my html knowledge goes, not much use to you I'm afraid :(

Mr Jones 30th June 2002 00:55

code:

<A HREF="http://www.linkhere.com" alt="blah " TARGET="_TOP" style="text-decoration:none">
<IMG SRC="http://www.imagelinkhere.com/imgage.jpg" border="0">
</a>


StillWater 30th June 2002 01:23

Thanks heaps, MJ

StillWater 2nd July 2002 14:25

For anyone who happens upon this thread via a search, and has the same problem:

Mr. Jones' code opens up the link in an external minibrowser, whereas Mr. Tough Guy's code opens it up inside the MB. To open up internally, but without a border:

<a href="http://winamp.com"><img src="mbinner.bmp"border="0"></img></a>

Mr Jones 2nd July 2002 14:34

Just change the TARGET tag to suit your needs...

TARGET="_blank"
This target will cause the link to always be loaded in a new blank window. This window is not named.

TARGET="_self"
This target causes the link to always load in the same window the anchor was clicked in. This is useful for overriding a globally assigned BASE target.

TARGET="_parent"
This target makes the link load in the immediate FRAMESET parent of this document. This defaults to acting like "_self" if the document has no parent.

TARGET="_top"
This target makes the link load in the full body of the window. This defaults to acting like "_self" if the document is already at the top. It is useful for breaking out of an arbitrarily deep FRAME nesting.

StillWater 2nd July 2002 14:40

Cool.
Just out of curiosity, if there is no target specified, will it always open in the same window? Or is it likely to open differently on different people's systems?

Mr Jones 2nd July 2002 14:46

That's a good question, in theory it should always open in the default window, however..... this for some reason isn't always the case, a lot depends on browser config, browser used yada yada yada, that's why I always try to use TARGET tags in any html that I write, that way I have control over what goes where.

StillWater 2nd July 2002 14:50

Yeah, it seems that that's the best thing to do. I remember Skinme! was once complaining that he didn't like the MB because it always opened everything in a new window (he was talking about the default winamp.com stuff I think)


All times are GMT. The time now is 08:20.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.