Is there a way to insert html form in this?

Discussion in 'JavaScript' started by raymond222, Jun 14, 2008.

  1. #1
    Is there a way i can display html from on top of embeded javascript?
    the javascript displays an image and i would like to use it as background.

    Here is the embed part of the script where I want to display form over:

    document.write('<embed src="'+ jaaspeel.big_path + '?' + jaaspeel.big_params +'" id="jcornerBigEmbed" name="jcornerBigObject" wmode="transparent" quality="high" width="'+ jaaspeel.big_width +'" height="'+ jaaspeel.big_height +'" flashvars="'+ jaaspeel.big_params +'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
    document.write('</object></div>');
    Code (markup):
    Thanks!
     
    raymond222, Jun 14, 2008 IP
  2. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #2
    just place your form code before the area it writes this code, and use css to make it float. "float: left;position: absolute;"
     
    crath, Jun 14, 2008 IP
    viitols likes this.
  3. raymond222

    raymond222 Active Member

    Messages:
    287
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Thanks man!
    I'll try it
     
    raymond222, Jun 15, 2008 IP