Click here to Skip to main content
12,819,248 members (30,813 online)
Rate this:
Please Sign up or sign in to vote.
See more: Javascript CSS HTML
I cannot get any image or .swf to play in my quickbox it just shows the name of the path in black as I typed it. How can I get it to display multimedia?

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head> <style>
            display: none;
            position: absolute;
            top: 0%;
            left: 0%;
            width: 100%;
            height: 100%;
            background-color: black;
            -moz-opacity: 0.8;
            filter: alpha(opacity=80);
        .white_content {
            display: none;
            position: absolute;
            top: 25%;
            left: 25%;
            width: 50%;
            height: 50%;
            padding: 1px;
            border: 1px solid orange;
            background-color: white;
            overflow: auto;
    </style> </head><body><p>!<a href="javascript:void(0)" onclick="document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">here</a></p><div id="light" class="white_content">! <a href="javascript:void(0)" onclick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">X</a></div><div id="fade" class="black_overlay"></div></body></html><script language="javascript">
Posted 11-May-12 18:27pm
Sandeep Mewara 12-May-12 3:56am
What is Quickbox here?
infamousbreed 13-May-12 0:05am
Take a look->

but ive resolved this issue now by just opening an iframe and showing whatever i want in it.
Sandeep Mewara 13-May-12 1:10am
You say, whatever problem you had/asked here is now resolved?
infamousbreed 13-May-12 7:38am
Well sort of. i dont know why that was happening nor how to fix it, but i worked around it by just forcing it to show by inserting an iframe. but i havent learnt anything from anyone thats all.
kishore0522 13-May-12 23:09pm
I Tried To Do But It Was Showing AN Error In Opacity can you say me about that and try it again by commenting the display options for both as it was none.Try Keeping it Block So That It Will Show Your Result When Clicking On It

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Well below is my solution:

<p><a href="javascript:void(0)" onclick="document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">!</a></p>
<div style="display: block;" id="light" class="white_content"> <span style="z-index: 2; left: -49px; top: -16px; position: absolute;"><iframe name="I2" src="flash8/inlineled.html" frameborder="0" height="84" scrolling="no" width="621">Your

browser does not

support inline frames or is currently configured

not to display inline frames.</iframe></span> <a href="javascript:void(0)" onclick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'"></a></div>

<script language="javascript&lt;</script">

Now i can drop anything inside and play it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 14 May 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100