Milka's exports

This is what I have so far. Its a JavaScript Image Popup on mouse over. All you have to do is add cover.jpg to see it work.

I am not sure how to implement it into your original script to make it work.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>

<head>

<title>JavaScript Image Popup</title>

<style>#imgbox 
{
    vertical-align : middle;
    position : absolute;
    border: 1px solid #999;
    background : #FFFFFF; 
    filter: Alpha(Opacity=100);
    visibility : hidden;
    height : 500px;
    width : 500px;
    z-index : 50;
    overflow : hidden;
    text-align : center;
}
</style>

<script>function Large(obj)
{
    var imgbox=document.getElementById("imgbox");
    imgbox.style.visibility='visible';
    var img = document.createElement("img");    
    img.src=obj.src;
    img.style.width='500px';
    img.style.height='500px';
    
    if(img.addEventListener){
        img.addEventListener('mouseout',Out,false);
    } else {
        img.attachEvent('onmouseout',Out);
    }             
    imgbox.innerHTML='';    
    imgbox.appendChild(img);    
    imgbox.style.left=(getElementLeft(obj)) +'px';
    imgbox.style.top=(getElementTop(obj)) + 'px';     
}  

function Out()
{
    document.getElementById("imgbox").style.visibility='hidden';
}

function getElementLeft(elm) 
{
    var x = 0;

    //set x to elm’s offsetLeft
    x = elm.offsetLeft;

    //set elm to its offsetParent
    elm = elm.offsetParent;

    //use while loop to check if elm is null
    // if not then add current elm’s offsetLeft to x
    //offsetTop to y and set elm to its offsetParent

    while(elm != null)
     {
        x = parseInt(x) + parseInt(elm.offsetLeft);
        elm = elm.offsetParent;
     }
     
     return x;
}

function getElementTop(elm) 
{
    var y = 0;

    //set x to elm’s offsetLeft
    y = elm.offsetTop;

    //set elm to its offsetParent
    elm = elm.offsetParent;

    //use while loop to check if elm is null
    // if not then add current elm’s offsetLeft to x
    //offsetTop to y and set elm to its offsetParent

    while(elm != null)
     {
        y = parseInt(y) + parseInt(elm.offsetTop);
        elm = elm.offsetParent;
     }
     
     return y;
}
</script>

</head>

<body>

<div id="imgbox"></div>

<img id="img1" style="width:300px; height:300px;" alt="" src="Cover.jpg" onmouseover="Large(this)" />

</body>

</html>

And to what script exactly are you referring to?
There are couple of them. :grinning:

Well over the years I have tweaked your script a little but I think it was originally called HTML Album Overview. What I have now is a Parent Frame Titled My Music. It is a HTML master Index of all my music made using dirhtml.exe. Then each Artist has a Page (from your script also :slight_smile: ) And then the Album Page. But as you can see the pop opens in modern day browsers ignoring scrollbars=no, toolbar=no, menubar=no etc. I thought it would be nice to just have the image popup larger (300px to 500px) on mouse over instead.

I see now, will see what I can do in next couple of days, when I find some spare time.

Thank you Milka! Here is the file I am using for a single album.
1- HTML Album Overview.mte (10.3 KB)

After getting back in the game, I realized that what your are talking about is actually based on my so called "Simple Exports" and more precisely "milkaSimple 01 html Album Overview.mte" export configuration.

Feature about showing large image on mouseover can very elegant and easily be done just with pure css and actually I like the idea.

Thank you for sharing your config file, but I will leave it up to you to adjust it "Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." :slight_smile:

Of course I will give you a hint, and actually you can copy paste it from my latest version of the export from my GitHub. Pay close attention to IMG.cover and IMG.cover:hover tags definition under inline style section. That is all you need to change in your .mte file.

As I decided to put all my exports on the GitHub, they will all be moved there in some near future.

Popup function that is opening cover in popup window is still there as I haven't found time to check that and maybe do some refactoring.

Anyways, here is a link to my GitHub and if you have any questions let me know:

Ok this is awesome Milka! Thank you for pointing me in a good direction!

Update: I got it figured out! That was so simple lol :slight_smile:

Cool, you are welcome.

You can s well play with numbers to adjust animation speed or how big you want your cover image to scale.

TRANSITION: transform .1s;
TRANSFORM: scale(1.66)

Ok thank you very much for the help :slight_smile: I am updating my library now!