| View previous topic :: View next topic |
| Author |
Message |
Bill Smith Lieutenant General

Joined: 29 Jan 2003 Posts: 1570 Location: Portland, Oregon Product: 3D-Album Commercial Suite
|
Posted: Mon Jul 26, 2004 10:02 pm Post subject: How to convert a 3D-Album application to a HTML page |
|
|
Sure, you can create a HTML page during the build. But, did you know that you can easily take an existing 3D-Album application (that's the .vexe file and associated files and folders) and convert it to a web page (HTML). Just follow these four steps:
1. Copy the HTML code below. Paste it into a new text document and name it "album.html". This HTML code was generated by my copy of 3D-Album. The only change that I made was to change the width and height settings.
2. Change the reference to Sequencer_1.vexe to your .vexe file. (It's in the first IF statement).
3. Upload all files and folders to your internet site. (See below for some more tips.)
4. Set a reference to your new album.html.
| Code: | <HTML>
<HEAD>
<TITLE>Sequencer_1</TITLE>
</HEAD>
<BODY bgcolor="000000">
<Center>
<SCRIPT LANGUAGE="JavaScript">
file_string=document.URL.substring(0,7);
file_string.toLowerCase();
if(file_string=="file://")
{
len=document.URL.lastIndexOf('\\');
if(len>7) path=document.URL.substring(7,len);
else path=document.URL.substring(7,document.URL.lastIndexOf('/'));
path="\""+path+"\\Sequencer_1.vexe"+"\"";
}
else
{
path=document.URL.substring(0,document.URL.lastIndexOf('/'));
path=path+"/Sequencer_1.vexe";
}
if(navigator.appName == "Microsoft Internet Explorer" )
{
document.writeln('<OBJECT ID=vaectrl
CLASSID="CLSID:CFC01863-0CCE-43F6-8790-7A5DC52ABEC0" width=100% HEIGHT=100%
CODEBASE="http://www.visviva.com/download/webplug/VaeCtrl.CAB#version=3,1,1,0"><PARAM
NAME="BackGround" VALUE="0"><PARAM NAME="AnimRef" VALUE=',path,'></OBJECT>');
}
else if(navigator.appName == "Netscape")
{
document.writeln('<EMBED NAME="vaectrl"
PLUGINSPAGE="http://www.visviva.com/download/webplug/npvaeplug.html" src=',path,' width=100%
HEIGHT=100% TYPE="application/x-Netscape-VAE-Plugin-VAE"><br>');
}
</SCRIPT>
</Center>
</BODY>
</HTML> |
TIP: Create a new folder to hold everything. Let's call our new folder "MYWEBPAGE"Then, rename the album.html file to index.html and your album should open up with just a simple reference to HREF="http://yourdomainname.com/MYWEBPAGE".
WATCHOUT: Your images may take too long to download. They may work fine, but people may not want to wait for all of them to download. Albums created for web page viewing should use smaller sized images. I like to use images 400x300 or thereabouts.
USING MIXER? No problem. Just do this for the top folder. Don't worry about the individual album folders, they'll work just fine just like they are. |
|
| Back to top |
|
 |
Bill Smith Lieutenant General

Joined: 29 Jan 2003 Posts: 1570 Location: Portland, Oregon Product: 3D-Album Commercial Suite
|
Posted: Tue Jul 27, 2004 10:31 am Post subject: |
|
|
BTW - An even easier way is just to open up 3D-Album and then do another BUILD, this time creating a HTML presentation.
If you used MIXER to create your album, then you can just go to CREATE, select MIXER, point to your folders, and then do another BUILD.
Also, the code above refers to VaeCtrl.CAB. A posting by Styler mentioned changing from VaeCtrl.CAB to VaeCtrl.exe.
I would suggest switching the line above to this | Code: | | CODEBASE="http://www.visviva.com/download/webplug/VaeCtrl.exe#version=3,2,9,0"><PARAM NAME="BackGround" VALUE="0"><PARAM NAME="AnimRef" VALUE=',path,'></OBJECT>'); |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|