Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8909611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:28:29+00:00 2026-06-15T03:28:29+00:00

I am trying to make a nice slidebox to first rate the article and

  • 0

I am trying to make a nice slidebox to first rate the article and then close the ratingbox to view the video. I am doing this on Joomla and using this code a little edited: http://jsfiddle.net/AetnV/72/

This is my version of the code:
(The problem is on static html pages (non joomla) it works perfect, but not on Joomla I have disabled on the javascript and iframe blacklisting from JCE and global configuration but still nothing, I tried it also with other themes its same.

  <script type='text/javascript' src='http://code.jquery.com/jquery-1.5.2.js'></script>

  <link rel="stylesheet" type="text/css" href="/css/normalize.css">
  <link rel="stylesheet" type="text/css" href="/css/result-light.css">

  <style type='text/css'>
    * { margin: 0; padding: 0; outline: none; }

body { background: #CCC; margin: 0; padding: 0; font: 10px normal Arial, Helvetica, sans-serif; }

/*--Main Image Area--*/
.main_image {
    margin: 20px 0 0 20px; width: 650px; height: 400px;
    float: left;  background: white; position: relative;  overflow: hidden;
    color: #fff;

    moz-box-shadow: 0px 0px 4px #666; 
    -webkit-box-shadow: 0px 0px 4px #666; 
    box-shadow: 0px 0px 4px #666;
}

.main_image h2 { font-size: 2em; font-weight: normal; margin: 0 0 5px; padding: 10px; }
.main_image p  { font-size: 1.2em; padding: 10px; margin: 0; line-height: 1.6em; }
.main_image .desc  { position: absolute; bottom: 0; left: 0; width: 100%; display: none;}
.main_image .block { height: 410px; width: 100%; background: #111; border-top: 1px solid #000; }
.main_image a.collapse {
    background: black; height: 30px; width: 650px;
    position: absolute; top: -30px; right: 0px;
    font: normal 12px arial; color: white; text-align: center;
}
.main_image a.show { background-position: left bottom; } 
  </style>



<script type='text/javascript'>//<![CDATA[ 
$(window).load(function(){
$(document).ready(function() {

    //Show Banner
    $(".main_image .desc").show(); //Show Banner
    $(".main_image .block").animate({ opacity: 1 }, 1 ); //Set Opacity


    //Toggle Teaser
    $("a.collapse").click(function(){
        $(this).next().slideToggle();
        $(this).toggleClass("show");
    });


});//Close Function  
});//]]>  

</script>


  <div class="main_image">
<br><br><br><br><br><br>
<center><img src="http://upload.macromedia.com/exchange/flash/previews/300x200_200x200.jpg" width=205" height="205"></a></center>
    <div class="desc" style="display: block; ">
        <a href="#" class="collapse show">Click Me!</a>
        <div class="block" style="opacity: 1; display: none; ">

            <center><br><br><br><iframe width="420" height="315" src="http://www.youtube.com/embed/AxcM3nCsglA" frameborder="0" allowfullscreen></iframe></iframe>
            </center>
        </div>
    </div>
</div>

Any help is greatly appreciated.
Thank you

*Also if you have a better way to suggest to do what I am trying to do please tell me. Its my first attempt I was thinking to make it 2divs and onclick one would overlap the other but I am afraid of spiders thinkings its hidden text etc..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T03:28:30+00:00Added an answer on June 15, 2026 at 3:28 am

    Try using the following:

    $document = JFactory::getDocument(); 
    $js = ' $(document).ready(function() {
    
                $(".main_image .desc").show();
                $(".main_image .block").animate({ opacity: 0.85 }, 1 );
    
                $("a.collapse").click(function(){
                    $(this).next().slideToggle();
                    $(this).toggleClass("show");
                });
    
             }); ';
    $document->addScriptDeclaration($js);
    

    If $document = JFactory::getDocument(); is already being used, remove it.

    If $doc = JFactory::getDocument(); is being used, then in the code above, change to this:

    $doc->addScriptDeclaration($js);

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hallo, I am trying to make nice URL, first rule works as expected, it's
first question here, be nice :P I am trying to make an infinite UIScrollView
I'm trying to make a nice-looking CSS menu, for this website . (The domain
Trying to make this jQuery filter that uses .find case-insensitive. For example, when the
Trying to make a simple number clicker control for BlackBerry 6/7, like this: At
Ok, so I'm trying to make a nice superclass for data-access objects that can
I am trying to make a fraction: I am using this is a text
I am currently trying to make a game in Android. I have this piece
I'm trying to make jQuery play nice with my WP navigation. My goal is
I'm trying to make my string a nice formatted time but the column in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.