Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
help with transparency in iframe - URGENT
Old 04-14-2008, 08:45 PM help with transparency in iframe - URGENT
Experienced Talker

Posts: 32
Trades: 0
Hi there,
I need some help, I've created an iframe (to post files to server in AJAX application), and i wanted to customize input field for file with some images and CSS (reference http://www.quirksmode.org/dom/inputfile.html) and at part where i should put "filter:alpha(opacity=0)" it makes that part transparent (at input file field place), so i can see through iframe, i need to get rid of that. And just to mention, in Firefox it works just fine (with -moz-opacity), so i know its just a truble in IE. And i forgot, I used z-indexes to create input field above image "select file".

Here' the part of code where input field is:
PHP Code:
<div style='width: 682px; float:right;margin: 0 26px 10px 0;'>
                                <b>upload new avatar:</b><br/>
                                <div style="position: relative;top:0;left;0;">
                                    <input type="hidden" name="MAX_FILE_SIZE" value="<?echo $max_gallery_image_size;?>"/>  
                                        <input type="hidden" name="new_username" value="<? echo $user;?>"/>  
                                        <input type="file" name='avatar' onchange='javascript:document.getElementById("path").value = document.forms[0].elements[2].value;' style='position: relative;float:right;text-align: right;border:0px;color:#FFF;filter:alpha(opacity=0);-moz-opacity:0.0;background:transparent;z-index:1'/>
                                        <div style="position: absolute;top:0;left:0;">
                                            <div style='margin: 0px 0 10px 0;background: url(../../images/content/choose-file.gif) no-repeat;width: 70px; height: 21px;position:absolute;left: 618px;top: 2px;'>&nbsp;</div>
                                            <input type='text' id='path' name='path' style='margin: 0px 0 0 0;text-align: right;float: right;font-weight: bold;padding: 2px;height: 17px;float: left;display: block;width: 608px;'/>
                                        </div>
                                </div>
                            </div>
and here's the iframe object:

PHP Code:
<iframe src="" frameborder='0' id='popup_frame' name='popup_frame' width="750" height="" style='display:none;'></iframe
i really don't know where is the problem, and would appreciate help as soon as possible as it's urgent.

Thanks in advance!

EDIT:
I forgot to show you part of js code with "real" css:

PHP Code:
popup.style.setAttribute('cssText','border: 0px;display: block;filter: alpha(opacity='+blend+'); -moz-opacity:'+(blend/100)+';position:absolute;top: 100px; left:'+offset+'px;'); 
blend goes from 0 to 100 to make fade in effect, and offset is calculated to put iframe in middle of screen

Last edited by lotar_vk; 04-14-2008 at 08:49 PM..
lotar_vk is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-14-2008, 11:16 PM Re: help with transparency in iframe - URGENT
Banned

Posts: 2,898
Location: Canada
Trades: 0
Try to add to iframe: allowtransparency="true"







fastreplies
fastreplies is offline
Reply With Quote
View Public Profile
 
Old 04-15-2008, 06:37 AM Re: help with transparency in iframe - URGENT
Experienced Talker

Posts: 32
Trades: 0
Quote:
Originally Posted by fastreplies View Post
Try to add to iframe: allowtransparency="true"
Thanks for reply, tried, but it doesn't work it's still transparent only at that part where the input field is, and i want to make it not transparent...

Anything else?
lotar_vk is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to help with transparency in iframe - URGENT
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11674 seconds with 12 queries