So just paste that in the .css? Sorry guys, i'd do my reading about it but it just one little thing that'll do if it's easy and not bother if it's not
Very much appreciate your help
well, you can use more than one css file... in this case, I'd say either add:
<link rel="stylesheet" type="text/css" href="http://www.makepovertyhistory.org/whiteband.css" >
or at the end of your css file
@import url("http://www.makepovertyhistory.org/whiteband.css")
then, where you want the link, just add:
<div class="MPHWhiteBandSmallRight">
<img src="http://www.makepovertyhistory.org/whiteband_mphtranslinkimg.gif"
width="163" height="163" border="0" usemap="#MPHLinkMapSmallRight" class="mphimage"></div>
<map name="MPHLinkMapSmallRight"><area shape="poly" coords="0,0,163,163,163,133,30,0"
href="http://www.makepovertyhistory.org/" target="_blank"></map>
Very much appreciate your help
]]>LOL - i have a website that uses stylesheets, the .css is linked above - i want to add that bit of .js to it as it is a link for a project i want to support
oh... well, just add that line you posted where you want the link... that should do it...
Now, the js doesn't do anything except write some crap to the page (god, I hate that)... so I'd tear it apart like so:
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://dtw.jiwe.org/e107_themes/e107v4a/style.css" >
<link rel="stylesheet" type="text/css" href="http://www.makepovertyhistory.org/whiteband.css" >
</head>
<body>
Hello, this is the body:
<table><tr><td>Column A</td><td>Column B</td></tr>
<tr>
<td colspan="2">
<!-- Here is the thing dibble wanted -->
<div class="MPHWhiteBandSmallRight">
<img src="http://www.makepovertyhistory.org/whiteband_mphtranslinkimg.gif"
width="163" height="163" border="0" usemap="#MPHLinkMapSmallRight" class="mphimage"></div>
<map name="MPHLinkMapSmallRight"><area shape="poly" coords="0,0,163,163,163,133,30,0"
href="http://www.makepovertyhistory.org/" target="_blank"></map>
<!-- End dibble thing -->
</td>
</tr></table>
</body>
</html>
try that, let me know if that's acceptable...
]]>Maybe phrak can help.
]]><html>
<head>
<link rel="stylesheet" type="text/css" href="http://dtw.jiwe.org/e107_themes/e107v4a/style.css ">
</head>
<body>
blah!
</body>
</html>
http://dtw.jiwe.org/e107_themes/e107v4a/style.css
if someone could fill in the blanks i'd be eternally grateful and even put your name on my site
]]><style><!--
@import url(http://www.makepovertyhistory.org/whiteband.css);
--></style>
<div class="MPHWhiteBandSmallRight">
<img src="http://www.makepovertyhistory.org/whiteband_mphtranslinkimg.gif"
width="163" height="163" border="0" usemap="#MPHLinkMapSmallRight" class="mphimage"></div>
<map name="MPHLinkMapSmallRight"><area shape="poly" coords="0,0,163,163,163,133,30,0"
href="http://www.makepovertyhistory.org/" target="_blank"></map>
that should get rid of the javascript dependancy
]]>sometag {
content: '<script type="text/javascript" src="http://www.makepovertyhistory.org/whiteband_small_right.js">
</script><noscript><a href="http://www.makepovertyhistory.org/">
http://www.makepovertyhistory.org</a></noscript>'
}
You may need to struggle with the "'s a bit, perhaps escape them or something.
Though it's probably not the best way to fix the problem. You can use nested HTML objects to try different things out.
]]>I see that you are calling a javascript file that just writes the HTML fopr an image, and a map to the document. If the user has no script support, a link is all that's there. Is that what you want to accomplish without JS?
]]>what do i gotta do then?
]]>Embed javascript in css (ie cascading style sheet)? ummm...What?!?
]]> <script type="text/javascript" src="http://www.makepovertyhistory.org/whiteband_small_right.js">
</script><noscript><a href="http://www.makepovertyhistory.org/">
http://www.makepovertyhistory.org</a></noscript>
i'd rather not have .js running but hey, i want to help!
]]>