Help - Search - Members - Calendar
Full Version: Maestro can u help me.
Forums > Resource Center > Support Center > MySpace Support > Myspace Resolved Topics
shorty_d09
i cant figure out how to get my rollovers on my myspace.

please help. i have been trying all day.
YourSuperior
Sure I'll help. Where is your coding for the rollovers?
shorty_d09
what do u mean?

i got the codes for the rollovers, but i cant find a code to put them in myspace.
YourSuperior
I'm asking you for the codes for the rollovers. Like the scripts that Adobe Image Ready gave you.
shorty_d09
here goes one of them.

CODE
<html>
<head>
<title>Untitled-4</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- ImageReady Preload Script (Untitled-4) -->
<script type="text/javascript">
<!--

function newImage(arg) {
    if (document.images) {
        rslt = new Image();
        rslt.src = arg;
        return rslt;
    }
}

function changeImages() {
    if (document.images && (preloadFlag == true)) {
        for (var i=0; i<changeImages.arguments.length; i+=2) {
            document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
        }
    }
}

var preloadFlag = false;
function preloadImages() {
    if (document.images) {
        add_me_Layer_1_over = newImage("http://www.freewebs.com/shortyd09/roll%20over%20stuff/add-me_Layer-1-over.gif");
        preloadFlag = true;
    }
}

// -->
</script>
<!-- End Preload Script -->
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="preloadImages();">
<!-- ImageReady Slices (Untitled-4) -->
<a href="#"
    onmouseover="changeImages('add_me_Layer_1', 'http://www.freewebs.com/shortyd09/roll%20over%20stuff/add-me_Layer-1-over.gif'); return true;"
    onmouseout="changeImages('add_me_Layer_1', 'http://www.freewebs.com/shortyd09/roll%20over%20stuff/add-me_Layer-1.gif'); return true;"
    onmousedown="changeImages('add_me_Layer_1', 'http://www.freewebs.com/shortyd09/roll%20over%20stuff/add-me_Layer-1-over.gif'); return true;"
    onmouseup="changeImages('add_me_Layer_1', 'http://www.freewebs.com/shortyd09/roll%20over%20stuff/add-me_Layer-1-over.gif'); return true;">
    <img name="add_me_Layer_1" src="http://www.freewebs.com/shortyd09/roll%20over%20stuff/add-me_Layer-1.gif" width="189" height="43" border="0" alt=""></a>
<!-- End ImageReady Slices -->
</body>
</html>
YourSuperior
You'll have to use css rollovers because myspace doesn't allow javascript.
shorty_d09
can u please tell me how to do that.
YourSuperior
Refer to this script: http://www.createblog.com/scripts/script.php?id=325
shorty_d09
i looked at that. and i got confussed.

can u tell me how to do it.
YourSuperior
This is similar, but it explains it:
http://wellstyled.com/css-nopreload-rollovers.html
http://bonrouge.com/br.php?page=rollover2
shorty_d09
i fell so dumb. i just dont get it.
i am usally computer sazzy. but this rollover stuff.....
so can u please dont these images.

<img src="http://www.freewebs.com/shortyd09/roll%20over%20stuff/add-me_Layer-1.gif">

<img src="http://www.freewebs.com/shortyd09/roll%20over%20stuff/add-me_Layer-1-over.gif">

and put them in a css code for me. then i could look at it and figure it out.
shorty_d09
thanxs. i tried it. but this is the problem

it works when i put one.

but when i put another one.

both of them have the same images.

example.

i put the add rollover. it works.

then i put the block rollover, and the add rollover says block.

i even tried putting them under different div classes.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.