Member Avatar

Had a question before that was partially solved. I'm having trouble getting just one part of it to work.

preload = new Element('iframe', {
                    'src': URL,
                     'id': mediaId,
                     width: mediaWidth,
                     height: mediaHeight,
                     scrolling : 'no',
                     'frameborder': 0
       = 'hidden'; 

So my issue is the = hidden.
I'm trying to make it so iframe is hidden until completed. I think Onload is the right command for that. So what is the equivalent to the = 'hidden'; line to get it to work? Thanks!

Recommended Answers

All 2 Replies

Member Avatar

Quick note guys: I found out that my program wasn't updating so the = 'hidden'; did actually work. The issue is using an ONLOAD function to make it visible. I don't know how to phrase it.
I know it's = 'visible';
But I don't know how I incorporate onload to it

function startEffect() {
//and see if it works the way you need it.
        if (mediaType == "img"){...
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.