Step 1
Upload the Viewlet files to your web server directly from inside ViewletBuilder.
Step 2
Copy the following code once and paste it between the <head> and </head> tags of your page:
<script language="javaScript">
<!--
function isLeelouCompliant()
{
answer=false;
version=Math.round(parseFloat(navigator.appVersion) * 1000);
if (navigator.appName.substring(0,9) == "Microsoft")
{
if(version>=4000) answer=true;
}
if (navigator.appName.substring(0,8) == "Netscape")
{
if ((navigator.appVersion.indexOf("Win")> 0) && (version>=4060)) answer=true;
else
if ((navigator.appVersion.indexOf("Linux")> 0) && (version>=4060)) answer=true;
else
if ((navigator.appVersion.indexOf("SunOS")> 0) && (version>=4060)) answer=true;
else
if ((navigator.appVersion.indexOf("Mac")> 0) && (version>=5000)) answer=true;
}
// other one with plug-in (ie opera+plug_in)
plugins=navigator.plugins;
if (plugins!=null)
{
for(i=0;i!=plugins.length;i++)
if((plugins[i].name.indexOf("Java Plug-in")>=0) && (plugins[i].name.indexOf("1.0")<0))
answer=true;
}
return answer;
}
function openViewlet(htmlFile,htmlWidth,htmlHeight)
{
str = 'resizable=0,toolbar=0,menubar=0,';
str = str + 'scrollbars=0,status=0,location=0,directory=0,width=350,height=200';
if(!isLeelouCompliant())
{
open("http://www.qarbon.com/warning/index.html",'Leelou',str);
}
else
{
if(document.all)
{
htmlWidth+=5;
htmlHeight+=10;
}
window.open(htmlFile,'Leelou','width='+htmlWidth+',height='+htmlHeight+',top=10,left=20');
}
}
// -->
</script>
Step 3
Copy/Paste EITHER of these links :
Viewlet is in the same directory as the web page :
<a href="javascript:openViewlet('Engraving_Wizard_viewlet.html',699,495);"></a>
OR
Viewlet is in a different directory than the web page :
<a href="javascript:openViewlet('path_to_viewlet\Engraving_Wizard_viewlet.html',699,495);"></a>
and replace 'path_to_viewlet' by the relative path from the web page to the viewlet
|