Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

got the transparent gif to work....but...

  • 28-08-2000 2:31pm
    #1
    Registered Users, Registered Users 2 Posts: 10,339 ✭✭✭✭


    now there's two things wrong.

    1. images won't preload for me.

    2. the rollover images inserted using DW3 won't actually roll...

    the page is at
    http://users4.50megs.com/emweb/

    any suggestions (and yes, I know, the background has to be reduced in size)


Comments

  • Registered Users, Registered Users 2 Posts: 310 ✭✭Cerberus


    whats all this MM stuff?
    Specifically, in the first javascript function "MM_swapImgRestore()" what is "document.MM_sr"?
    I never seen this kinda stuff before.
    Do you understand it yourself or did dreamweaver do all it?


  • Registered Users, Registered Users 2 Posts: 10,339 ✭✭✭✭LoLth


    dreamweaver does it all.

    that's why I prefer just using notepad or something because you understand what you're doing.

    Unfortunately, I don't really understand how to write rollover images or other Javascript stuff (I know why and how they work, just not exactly). So, for these, Dreamweaver is quite handy. Unfortunately, this time, it's decided to **** up. - or I could have. frown.gif


  • Closed Accounts Posts: 3,859 ✭✭✭logic1


    umm dunno bout dw but i usually do it like this
    <SCRIPT language=JavaScript>
    <!--

    function MM_preloadImages() {

    if (document.images) {
    if (typeof document.WM == 'undefined'){
    document.WM = new Object();
    }
    document.WM.loadedImages = new Array();
    var argLength = MM_preloadImages.arguments.length;
    for(arg=0;arg<argLength;arg++) {
    document.WM.loadedImages[arg] = new Image();
    document.WM.loadedImages[arg].src = MM_preloadImages.arguments[arg];
    }
    }
    }

    MM_preloadImages("images/whatever1.gif","images/whatever2.gif")
    function WM_imageSwap(daImage, daSrc){
    var objStr,obj;
    // Check to make sure that images are supported in the DOM.
    if(document.images){
    // Check to see whether you are using a name, number, or object
    if (typeof(daImage) == 'string') {
    // This whole objStr nonesense is here solely to gain compatability
    // with ie3 for the mac.
    objStr = 'document.' + daImage;
    obj = eval(objStr);
    obj.src = daSrc;
    } else if ((typeof(daImage) == 'object') && daImage && daImage.src) {
    daImage.src = daSrc;
    }
    }
    }
    </SCRIPT>

    then when u throw in your image do it like this:
    <A
    href="http://www.whatever.com&quot;
    onmouseout="WM_imageSwap('Home','images/whatever1.gif');"
    onmouseover="WM_imageSwap('Home','images/whatever2.gif');"><IMG
    border=0 height=* name=Whatever
    src="images/whatever1.gif" width=*></A>



  • Moderators, Social & Fun Moderators Posts: 28,633 Mod ✭✭✭✭Shiminay


    The MM means MacroMedia...

    I use Dreamweaver for this sort of stuff and haven't ahd any problems. Try a new page and make one rollover image. Compare the code for any discrepencies, anomolies, sub-space disturbances, etc,

    Just looked at the source - doesn't the mouseOver() and mouseOut() stuff go on the images?



    All the best,

    Dav
    @B^)
    My page of stuff


Advertisement