assistance with a script ? please :-)

liunx

Guest
hi all<br />
I was looking to use a script I found.. but it does not seem to work for me.. here is the link to the script...it's called "set image"<br />
<br />
<!-- m --><a class="postlink" href="http://javascript.internet.com/miscellaneous/set-image.html">http://javascript.internet.com/miscella ... image.html</a><!-- m --><br />
<br />
<br />
and here is a link to the page I'm using it on:<br />
<br />
<!-- m --><a class="postlink" href="http://virtualsolarsystem.com/mercury/webwizard/index3.html">http://virtualsolarsystem.com/mercury/w ... ndex3.html</a><!-- m --><br />
<br />
perhaps someone could do a view source and see any errors I made? it no worky :confused: <br />
<br />
if anyone can help I would be grateful<br />
my e-mail is <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --><!--content-->Just taking a quick run through, the problem appears to be capitalization. In JS abc does not equal ABC or Abc or ABc.... Make all your varibles agree and it should work..<!--content-->looking at that now thanks so much I'll keep you posted ! ty<!--content-->wow !! that fixed it ! awesome ! thanks a bunch ! <br />
I feel foolish:o <br />
I shoulda known that <br />
<br />
thank you again<!--content-->No problem. You'd be surprised at often that mistake is made. (I generally fat finger at least one variable name everytime I write new code...):D<!--content-->one last question<br />
the links to the images themselves are difficult to see <br />
(on my machine anyway) <br />
how do they appear to you? <br />
is there a way to change their color in the script?<br />
<br />
when time permits ty<br />
<br />
GHOST<!--content-->I'm running at 1280x1024 and have no problem seeing them. As to the color I'd look to CSS, but you should be able to change it using something like:<br />
<br />
<br />
<head><br />
<script type="text/javascript"><br />
function chgColor(){<br />
document.getElementById('Link1').style.color="red";<br />
}<br />
<br />
</script><br />
</head><br />
<br />
<body><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"#" id="Link1" style="color:green" onmouseover="chgColor();">Testing Color</a><br />
</body><br />
<br />
Requires the link to have an ID. Same thing using CSS:<br />
<br />
<script type="text/javascript"><br />
function chgColor(){<br />
document.getElementById('Link1').style.color="red";<br />
}<br />
<br />
</script><br />
<style type="text/css"><br />
a {<br />
color:green;<br />
}<br />
<br />
a:hover {<br />
color:blue;<br />
}<br />
</style><br />
</head><br />
<br />
<body><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"#" id="Link1" onclick="chgColor();">Testing Color</a><br />
</body><!--content-->Thank you again for all your help:) <br />
I'm not sure I would have figued all this out with out your assistance.. I'm a rookie to most of this and I learn as I go.. your a great teacher :cool: <br />
<br />
be well..<br />
<br />
Rod<br />
GHOSTRIDER<!--content-->
 
Back
Top