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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:42:17+00:00 2026-06-09T17:42:17+00:00

so I got this function from someone, what it does is replace my image

  • 0

so I got this function from someone, what it does is replace my image with an swf, or other html code after waiting 10 seconds, here it is.

<input name="sample_check3" id="sample_check3" value="1" type="radio" onclick="showStuff('stage');setTimeout(function() {$('#stage').html('HTML CODE HERE'); }, 10000)""/>

If I just put a simple html paragraph or heading in there, it successfully replaces the image with it, but when I try to put my swf code in there, it thinks that the swf embed code is HTML, and basically just “echos” it right away right where it is, instead of waiting. This is what i replaced it with.

    <input name="sample_check3" id="sample_check3" value="1" type="radio" onclick="showStuff('stage');setTimeout(function() {$('#stage').html('<OBJECT style="z-index:2; position:absolute; top:20%; left:44%;" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="320" HEIGHT="240" id="rice" ALIGN="">
<PARAM NAME=movie VALUE="rice.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#333399> <EMBED src="rice.swf" quality=high bgcolor=#333399 WIDTH="320" HEIGHT="240" NAME="rice" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT>'); }, 10000)""/>

I have tried using single quotes, double quotes, esscaping the quotes, it all yields the sam result. It just places the swf right where it is with ); }, 10000)""/> printed out after it, because it basically forgets its javascript (not forgets, I just dont know how to explain it xD) Anyway, Im hoping someone could help me, thanks.

  • 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-09T17:42:19+00:00Added an answer on June 9, 2026 at 5:42 pm

    You have an extra " at the end:

    <input name="sample_check3" id="sample_check3" value="1" type="radio" 
        onclick="showStuff('stage'); 
        setTimeout(function() {$('#stage').html('HTML CODE HERE'); }, 10000)"" /> <---
    

    If this is not the issue, we may need to see the html being set in .html().

    Edit: I do not know how I missed your second example with the actual html yesterday. However, when looking at your html, I highly recommend that you do not do your javascript inline. You can take advantage of the power of jQuery and can setup your click handler like this:

    HTML:

    <input name="sample_check3" id="sample_check3" value="1" type="radio" />
    

    Javascript:

    $('#sample_check3').on('click', function() {
        showStuff('stage');
        setTimeout(function() {
            $('#stage').html('<OBJECT style="z-index:2; position:absolute; top:20%; left:44%;" 
                classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  
                codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" 
                WIDTH="320" HEIGHT="240" id="rice">
                <PARAM NAME=movie VALUE="rice.swf"> 
                <PARAM NAME=quality VALUE=high>
                <PARAM NAME=bgcolor VALUE=#333399> 
                <EMBED src="rice.swf" quality=high bgcolor=#333399 WIDTH="320" HEIGHT="240" 
                    NAME="rice" TYPE="application/x-shockwave-flash" 
                    PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
                </EMBED>
            </OBJECT>');
        }, 10000) ;
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got an html page from where Im making this call periodically: function logon(id)
I got this from for a login form tutorial: function sanitize($securitystring) { $securitystring =
I got this code: function zeroPad(num, places) { var zero = places - num.toString().length
I have got this code: function init(){ if (typeof window.jQuery !== 'function') { var
I've got this code in the InitInstance function of a class that extends WinApp:
I got this function to split string but it's giving the spited string in
In the end, I got this function. I don't know whether it's normal or
I've got this simple function which displays a message to the user. If I
I've got this jQuery function: function phpmail(){ $.post('mail.php',{name:$(#name).val()}, function(out){ alert(out); }); } and this
I've got this script on my website : $(document).ready(function() { function filterPath(string) { return

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.