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 9247577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:45:50+00:00 2026-06-18T09:45:50+00:00

I am trying to create expandable ads that will work without Flash (i.e. on

  • 0

I am trying to create expandable ads that will work without Flash (i.e. on iOS).
I work as a front end web designer with no real Javascript knowledge.
I found a sample code for how I could create the ad however it incorporates flash to activate the expand and retract Javascript functions.

Is it possible to create expandable ads using gif/jpg images?
What I means is a 300×40 mobile ad that expands to 300×400 full screen on a tap.

I would really appreciate any help on this.

  • 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-18T09:45:51+00:00Added an answer on June 18, 2026 at 9:45 am

    I would recommend trying this with CSS3 then as I would imagine as a front end web designer you are more comfortable with CSS.
    I am quite sure that a hover equates to a tap on most mobile devices.

    Try the below:

    <style>
    .youradvert {
       overflow: hidden;
       width: 300px;
       height: 40px;
       -webkit-transition: all 1s;
       -moz-transition: all 1s;
       -o-transition: all 1s;
       transition: all 1s;
    }
    .youradvert:hover {
       height: 400px;
    }
    </style>
    

    Alternatively as a tap is the same as a click you could set an image with display:none and have a simple Javascript function that changes the display value onclick.
    You may find that the click implementation would be more universally implemented than hover but I am not certain. You could use VISIBILITY if DISPLAY doesnt do the trick.

    Something like the below:

    <script type="text/javascript">
    <!--
        function expand(){
            document.getElementById('large_ad').style.display=block;
        }
    -->
    </script>
    
    <div class="youradvert">
       <img id="small_ad" src="http://example.com/image.jpg" onclick="expand()" alt="" style="width:300px;height:40px;"/>
       <img id="large_ad" src="http://example.com/image.jpg" style="display:none;width:300px;height:400px;" alt=""/>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create an expandable menu item in android, which will look like
I'm trying create a query that will output a total number, as well as
I'm trying create an intermediate object to work with elsewhere that I can pass
I'm currently trying create a service that will return results of a OLAP cube
I'm trying to create a form that has an expandable widget. The problem is
I am trying create a small web application that allows a user to login
I'm trying to create an expandable listview. The initial view with the groups shows
Hello I am trying to create a custom expandable listview, but the documentation on
So, I'm trying to create a random vector (think geometry, not an expandable array),
I am trying create a WCF service that leverages the WPF MediaPlayer on the

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.