Skip to content

Instantly share code, notes, and snippets.

@ModestGoblin
Created February 7, 2016 05:11
Show Gist options
  • Save ModestGoblin/5333f7cfbd5846d10910 to your computer and use it in GitHub Desktop.
Save ModestGoblin/5333f7cfbd5846d10910 to your computer and use it in GitHub Desktop.
function form(x_pos,y_pos){ // to create, call from myFunction()
jQuery("#someID").show();
var ele = image.getElementById('form_panel');
x_pos = x_pos - 25;
y_pos = y_pos - 80;
image.body.appendChild(form_panel);
image.getElementById('form_panel').style.width='180px';
image.getElementById('form_panel').style.height='70px';
image.getElementById('form_panel').style.background='#eee';
image.getElementById('form_panel').style.position = "absolute";
image.getElementById('form_panel').style.left=x_pos+'px';
image.getElementById('form_panel').style.top=y_pos+'px';
//console.log("form is showing in form()");
jQuery("#form_panel").show();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment