![]() |
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 :) |
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 |
It works, but it creates a black border around the picture. Is there a way to get around that?
|
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 |
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. :(
|
well that's as far as my html knowledge goes, not much use to you I'm afraid :(
|
code: |
Thanks heaps, MJ
|
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> |
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. |
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? |
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.
|
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.