Integrating RTD into your website - with a Volusion-based live example August 11, 2012 06:07AM |
Admin Registered: 16 years ago Posts: 2,160 |
<div id='rtd_frame_container'> <center> <a href="#" OnClick="CloseRTD();" class="rtd_cmdbuttons">Close Online Designer</a> </center> <iframe allowTransparency='true' id='rtd_frame' scrolling='auto' frameborder='0' marginwidth='0' marginheight='0'></iframe>"; </div> <center><br> <a href="#" OnClick="LauchRTD('http://designer.realtimedesigner.com/YourRtdLink');" class="rtd_cmdbuttons">Launch Online Designer</a> </center> <style> #rtd_frame_container { position: fixed; top: 2%; left: 0; width: 100%; height: 90%; background-color: transparent; display: none; text-align: center; } #rtd_frame { margin: 12px 0 0; padding: 0; width: 1120px; height: 100%; border: 1px solid black; background-color: #DFEFFF; } .rtd_cmdbuttons { background-color:#09ad4a; -moz-border-radius:20px; -webkit-border-radius:20px; border-radius:20px; border:1px solid #dcdcdc; color:#ffffff; font-family:Verdana; font-size:30px; font-weight:bold; padding:6px 76px; text-decoration:none; }.rtd_cmdbuttons:hover { background-color:#1bcc00; }.rtd_cmdbuttons:active { position:relative; top:1px; } </style> <script> function LauchRTD(rtdlink) { window.location.href='#'; document.getElementById('rtd_frame_container').style.display='block'; document.getElementById('rtd_frame').src=rtdlink; } function CloseRTD() { window.location.href='#'; document.getElementById('rtd_frame_container').style.display='none'; document.getElementById('rtd_frame').src=''; } </script>
Re: Integrating RTD into your website - with a Volusion-based live example August 11, 2012 09:43PM |
Admin Registered: 16 years ago Posts: 2,160 |
<center><br> <div id='rtd_openbutton' style='display:block'><a OnClick="LauchRTD('http://designer.realtimedesigner.com/YourRtdLink');" class="rtd_cmdbuttons">Launch Online Designer</a></div> <div id='rtd_closebutton' style='display:none'><a href="#" OnClick="CloseRTD();" class="rtd_cmdbuttons">Close Online Designer</a></div> </center> <div id='rtd_placefinder'></div> <div id='rtd_frame_container'><br> <iframe allowTransparency='true' id='rtd_frame' scrolling='auto' frameborder='0' marginwidth='0' marginheight='0'></iframe>"; </div> <style> #rtd_frame_container { position: absolute; top: 0; left: 0; width: 100%; height: 1600px; background-color: transparent; display: none; text-align: center; } #rtd_frame { margin: 12px 0 0; padding: 0; width: 1120px; height: 100%; border: 1px solid black; background-color: #DFEFFF; } .rtd_cmdbuttons { background-color:#09ad4a; -moz-border-radius:20px; -webkit-border-radius:20px; border-radius:20px; border:1px solid #dcdcdc; color:#ffffff; font-family:Verdana; font-size:30px; font-weight:bold; padding:6px 76px; text-decoration:none; cursor: pointer; }.rtd_cmdbuttons:hover { background-color:#1bcc00; }.rtd_cmdbuttons:active { position:relative; top:1px; } </style> <script> function LauchRTD(rtdlink) { document.getElementById('rtd_frame_container').style.display='block'; document.getElementById('rtd_frame').src=rtdlink; var initcoords=findPosRTD(document.getElementById('rtd_placefinder')); document.getElementById('rtd_frame_container').style.top=initcoords[1]+'px'; document.getElementById('rtd_openbutton').style.display='none'; document.getElementById('rtd_closebutton').style.display='block'; } function CloseRTD() { document.getElementById('rtd_frame_container').style.display='none'; document.getElementById('rtd_frame').src=''; document.getElementById('rtd_openbutton').style.display='block'; document.getElementById('rtd_closebutton').style.display='none'; } function findPosRTD(obj) { var curleft = curtop = 0; if (obj.offsetParent) { do { curleft += obj.offsetLeft; curtop += obj.offsetTop; } while (obj = obj.offsetParent); } return [curleft,curtop]; } </script>
Re: Integrating RTD into your website - with a Volusion-based live example August 12, 2012 06:46AM |
Registered: 16 years ago Posts: 1,045 |
Re: Integrating RTD into your website - with a Volusion-based live example September 12, 2012 02:49PM |
Registered: 16 years ago Posts: 1,045 |
Re: Integrating RTD into your website - with a Volusion-based live example September 12, 2012 07:26PM |
Admin Registered: 16 years ago Posts: 2,160 |
function LauchRTD(rtdlink) { document.getElementById('rtd_frame_container').style.display='block'; if (document.getElementById('rtd_frame').src!=rtdlink) document.getElementById('rtd_frame').src=rtdlink; var initcoords=findPosRTD(document.getElementById('rtd_placefinder')); document.getElementById('rtd_frame_container').style.top=initcoords[1]+'px'; document.getElementById('rtd_openbutton').style.display='none'; document.getElementById('rtd_closebutton').style.display='block'; } function CloseRTD() { document.getElementById('rtd_frame_container').style.display='none'; document.getElementById('rtd_openbutton').style.display='block'; document.getElementById('rtd_closebutton').style.display='none'; }
Re: Integrating RTD into your website - with a Volusion-based live example September 12, 2012 09:43PM |
Registered: 16 years ago Posts: 1,045 |
Re: Integrating RTD into your website - with a Volusion-based live example September 12, 2012 10:19PM |
Admin Registered: 16 years ago Posts: 2,160 |
function LauchRTD(rtdlink) { window.location.href='#'; document.getElementById('rtd_frame_container').style.display='block'; if (document.getElementById('rtd_frame').src!=rtdlink) document.getElementById('rtd_frame').src=rtdlink; } function CloseRTD() { window.location.href='#'; document.getElementById('rtd_frame_container').style.display='none'; }
Re: Integrating RTD into your website - with a Volusion-based live example September 13, 2012 06:13AM |
Registered: 16 years ago Posts: 1,045 |