home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" standalone="yes"?>
- <!-- XML declaration 19980802 -->
-
- <!-- Arrows: Done as of Aug 10th -->
-
- <Items>
-
- <Item Type="File" CLASS="Arrow Button" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
- <Icon SRC="%Filename%"/>
- <Description>%ASK:Description:%{Arrow ALT Text}</Description>
- <Filename SRC="%Filename%"/>
- <SCRIPT LANGUAGE="JScript"><![CDATA[
- var src, dest, attr;
- src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
-
- function buildpath()
- {
- if (ActiveDocument.InCurrentProject)
- {
- dst = Application.ProjectDirectory + "\\images\\arrows\\%Filename%";
- attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
- }
- else
- {
- dst = ActiveDocument.Path + "\\images\\arrows\\%Filename%";
- attr = "images/arrows/%Filename%";
- }
- }
-
- function dropfxnow()
- {
- Application.FX.CopyFile(src, dst);
- Application.FX.SelectDropPoint();
- Application.FX.HTML('<A HREF=\"{Choose URL}\"><IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0"><\/A>',null,null,null,null,true);
- Application.FX.ShowDialog('ANCHOR');
- }
-
- // First, check if the file is saved
- if (ActiveDocument.Path != "")
- {
- buildpath();
- dropfxnow();
- }
- else
- {
- ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
-
- if (ans == 1)
- {
- ActiveDocument.SaveAs();
- }
- if (ActiveDocument.Path != "") //check again if they did indeed save and name file
- {
- buildpath();
- dropfxnow();
- }
- }
-
- ]]>
- </SCRIPT>
- </Item>
-
- <!-- Arrows: Done as of Aug 10th -->
-
- <!-- Backgrounds: Done as of Aug 10th -->
-
- <Item Type="File" CLASS="Background" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
- <Icon SRC="%Filename%"/>
- <Description>Background: %Filename%</Description>
- <Filename SRC="%Filename%"/>
- <SCRIPT LANGUAGE="JScript"><![CDATA[
- var src, dest, attr;
- src = "%Pathname%" + "%thisItem.SQ_getChildAttribute("Filename", 0, "SRC")%";
-
- function buildpath() //customize this for each FX type
- {
- if (ActiveDocument.InCurrentProject)
- {
- dst = Application.ProjectDirectory + "\\images\\backgrounds\\%Filename%";
- attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
- }
- else
- {
- dst = ActiveDocument.Path + "\\images\\backgrounds\\%Filename%";
- attr = "images/backgrounds/%Filename%";
- }
- }
-
- function dropfxnow()
- {
- // Only attmpt to copy the file if the SRC is not empty
- if ("%thisItem.SQ_getChildAttribute("Filename", 0, "SRC")%" != "")
- {
- Application.FX.CopyFile(src, dst);
- Application.FX.SetAttribute('BODY', 'BACKGROUND', attr, 'first');
- }
- else
- {
- Application.FX.SetAttribute('BODY', 'BACKGROUND', '', 'first');
- }
- }
-
-
- // Check if the file is saved
-
- if (ActiveDocument.Path != "")
- {
- buildpath();
- dropfxnow();
- }
- else
- {
- ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
-
- if (ans == 1)
- {
- ActiveDocument.SaveAs();
- }
- if (ActiveDocument.Path != "") //check again if they did indeed save and name file
- {
- buildpath();
- dropfxnow();
- }
- }
- ]]>
- </SCRIPT>
- </Item>
-
- <!-- Backgrounds: Done as of Aug 10th -->
-
-
- <!-- Buttons: Done as of Aug 10th -->
-
- <Item Type="File" CLASS="Button" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
- <Icon SRC="%Filename%"/>
- <Description>%ASK:Description:%{Button ALT Text}</Description>
- <Filename SRC="%Filename%"/>
- <SCRIPT LANGUAGE="JScript"><![CDATA[
- var src, dest, attr;
- src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
-
- function buildpath()
- {
- if (ActiveDocument.InCurrentProject)
- {
- dst = Application.ProjectDirectory + "\\images\\buttons\\%Filename%";
- attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
- }
- else
- {
- dst = ActiveDocument.Path + "\\images\\buttons\\%Filename%";
- attr = "images/buttons/%Filename%";
- }
- }
-
- function dropfxnow()
- {
- Application.FX.CopyFile(src, dst);
- Application.FX.SelectDropPoint();
- Application.FX.HTML('<A HREF=\"{Choose URL}\"><IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0"><\/A>',null,null,null,null,true);
- Application.FX.ShowDialog('ANCHOR');
- }
-
- // First, check if the file is saved
- if (ActiveDocument.Path != "")
- {
- buildpath();
- dropfxnow();
- }
- else
- {
- ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
-
- if (ans == 1)
- {
- ActiveDocument.SaveAs();
- }
- if (ActiveDocument.Path != "") //check again if they did indeed save and name file
- {
- buildpath();
- dropfxnow();
- }
- }
-
- ]]>
- </SCRIPT>
- </Item>
-
- <!-- Buttons: Done as of Aug 10th -->
-
- <!-- Banners: Done as of Aug 10th -->
-
- <Item Type="File" CLASS="Banner" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
- <Icon SRC="%Filename%"/>
- <Description>%ASK:Description:%{Banner ALT Text}</Description>
- <Filename SRC="%Filename%"/>
- <SCRIPT LANGUAGE="JScript"><![CDATA[
- var src, dest, attr;
- src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
-
- function buildpath()
- {
- if (ActiveDocument.InCurrentProject)
- {
- dst = Application.ProjectDirectory + "\\images\\banners\\%Filename%";
- attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
- }
- else
- {
- dst = ActiveDocument.Path + "\\images\\banners\\%Filename%";
- attr = "images/banners/%Filename%";
- }
- }
-
- function dropfxnow()
- {
- Application.FX.CopyFile(src, dst);
- Application.FX.SelectDropPoint();
- Application.FX.HTML('<IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0">');
- }
-
- // First, check if the file is saved
- if (ActiveDocument.Path != "")
- {
- buildpath();
- dropfxnow();
- }
- else
- {
- ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
-
- if (ans == 1)
- {
- ActiveDocument.SaveAs();
- }
- if (ActiveDocument.Path != "") //check again if they did indeed save and name file
- {
- buildpath();
- dropfxnow();
- }
- }
-
- ]]>
- </SCRIPT>
- </Item>
-
- <!-- Banners: Done as of Aug 10th -->
-
- <!-- Bulleted Lists with IMG bullets: Done as of Aug 10th -->
-
-
- <Item Type="File" CLASS="Bulleted List" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
- <Icon SRC="%Filename%"/>
- <Description>*</Description>
- <Filename SRC="%Filename%"/>
- <SCRIPT LANGUAGE="JScript"><![CDATA[
- var src, dest, attr;
- src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
-
- function buildpath()
- {
- if (ActiveDocument.InCurrentProject)
- {
- dst = Application.ProjectDirectory + "\\images\\bullets\\%Filename%";
- attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
- }
- else
- {
- dst = ActiveDocument.Path + "\\images\\bullets\\%Filename%";
- attr = "images/bullets/%Filename%";
- }
- }
-
- function dropfxnow()
- {
- Application.FX.SelectDropPoint();
- Application.FX.CopyFile(src, dst);
- Application.FX.HTML('<DL><DT><IMG SRC="' + attr + '" ALT="*" BORDER="0" HSPACE="5" CLASS="SQBULLET" ALIGN="ABSMIDDLE"><\/DT><\/DL>');
- Selection.MoveLeft(0);Selection.MoveRight(0);
- }
-
- // First, check if the file is saved
- if (ActiveDocument.Path != "")
- {
- buildpath();
- dropfxnow();
- }
- else
- {
- ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
-
- if (ans == 1)
- {
- ActiveDocument.SaveAs();
- }
- if (ActiveDocument.Path != "") //check again if they did indeed save and name file
- {
- buildpath();
- dropfxnow();
- }
- }
-
- ]]>
- </SCRIPT>
- </Item>
-
- <!-- Bulleted Lists with IMG bullets: Done as of Aug 10th -->
-
- <!-- Clipart: Done as of Aug 22nd -->
-
- <Item Type="File" CLASS="Clipart" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
- <Icon SRC="%Filename%"/>
- <Description>%ASK:Description:%{Clipart ALT Text}</Description>
- <Filename SRC="%Filename%"/>
- <SCRIPT LANGUAGE="JScript"><![CDATA[
- var src, dest, attr;
- src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
-
- function buildpath()
- {
- if (ActiveDocument.InCurrentProject)
- {
- dst = Application.ProjectDirectory + "\\images\\clipart\\%Filename%";
- attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
- }
- else
- {
- dst = ActiveDocument.Path + "\\images\\clipart\\%Filename%";
- attr = "images/clipart/%Filename%";
- }
- }
-
- function dropfxnow()
- {
- Application.FX.SelectDropPoint();
- Application.FX.CopyFile(src, dst);
- Application.FX.HTML('<IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml(Description, 0)%' + '" BORDER="0">');
- }
-
- // First, check if the file is saved
- if (ActiveDocument.Path != "")
- {
- buildpath();
- dropfxnow();
- }
- else
- {
- ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
-
- if (ans == 1)
- {
- ActiveDocument.SaveAs();
- }
- if (ActiveDocument.Path != "") //check again if they did indeed save and name file
- {
- buildpath();
- dropfxnow();
- }
- }
-
-
- ]]>
- </SCRIPT>
- </Item>
-
- <!-- Clipart: Done as of Aug 10th -->
-
- <!-- Horizontal Rules: Done as of Aug 10th -->
-
- <Item Type="File" CLASS="Horizontal Rule" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
- <Icon SRC="%Filename%"/>
- <Description>%ASK:Description:%--------------------</Description>
- <Filename SRC="%Filename%"/>
- <SCRIPT LANGUAGE="JScript"><![CDATA[
- var src, dest, attr;
- src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
-
- function buildpath()
- {
- if (ActiveDocument.InCurrentProject)
- {
- dst = Application.ProjectDirectory + "\\images\\rules\\%Filename%";
- attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
- }
- else
- {
- dst = ActiveDocument.Path + "\\images\\rules\\%Filename%";
- attr = "images/rules/%Filename%";
- }
- }
-
- function dropfxnow()
- {
- Application.FX.CopyFile(src, dst);
- Application.FX.HTML('<P ALIGN=\"CENTER\"><IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml(Description, 0)%' + '" BORDER="0"><\/P>');
- }
-
- // First, check if the file is saved
- if (ActiveDocument.Path != "")
- {
- buildpath();
- dropfxnow();
- }
- else
- {
- ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
-
- if (ans == 1)
- {
- ActiveDocument.SaveAs();
- }
- if (ActiveDocument.Path != "") //check again if they did indeed save and name file
- {
- buildpath();
- dropfxnow();
- }
- }
-
- ]]>
- </SCRIPT>
- </Item>
-
- <!-- Horizontal Rules: Done as of Aug 10th -->
-
- <!-- Background Sounds: Done as of Aug 11th -->
-
-
- <Item Type="File" CLASS="Background Sound" ID="%Filename%" FILEFILTER="*.wav;*.aif">
- <Icon SRC="sound.gif"/>
- <Description>%ASK:Description:%{Description Of Sound}</Description>
- <Filename SRC="%Filename%"/>
- <SCRIPT LANGUAGE="JScript"><![CDATA[
- var src, dest, attr;
- src = "%Pathname%" + "%thisItem.SQ_getChildAttribute("Filename", 0, "SRC")%";
-
- function buildpath() //customize this for each FX type
- {
- if (ActiveDocument.InCurrentProject)
- {
- dst = Application.ProjectDirectory + "\\sounds\\%Filename%";
- attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
- }
- else
- {
- dst = ActiveDocument.Path + "\\sounds\\%Filename%";
- attr = "sounds/%Filename%";
- }
- }
-
- function dropfxnow()
- {
- // Only attmpt to copy the file if the SRC is not empty
- if ("%thisItem.SQ_getChildAttribute("Filename", 0, "SRC")%" != "")
- {
- Application.FX.CopyFile(src, dst);
- }
- Application.FX.HTML('<EMBED ID="SQBGSOUND" SRC="' + attr + '" AUTOSTART="TRUE" LOOP="FALSE" VOLUME="100" HIDDEN="TRUE">',null,'BODY','SQBGSOUND','START');
- // Application.FX.SetAttribute('BGSOUND', 'SRC', attr, 'first');
- }
-
- // Check if the file is saved
-
- if (ActiveDocument.Path != "")
- {
- buildpath();
- dropfxnow(attr);
- }
- else
- {
- ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
-
- if (ans == 1)
- {
- ActiveDocument.SaveAs();
- }
- if (ActiveDocument.Path != "") //check again if they did indeed save and name file
- {
- buildpath();
- dropfxnow();
- }
- }
- ]]>
- </SCRIPT>
- </Item>
-
- <!-- Background Sounds: Done as of Aug 11th -->
-
- <!-- Drop Caps: Done as of Aug 11th -->
-
- <Item Type="File" CLASS="Drop Capital" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
- <Icon SRC="%Filename%"/>
- <Description>%ASK:Description:%{Enter The Letter Here}</Description>
- <Filename SRC="%Filename%"/>
- <SCRIPT LANGUAGE="JScript"><![CDATA[
- var src, dest, attr;
- src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
-
- function buildpath()
- {
- if (ActiveDocument.InCurrentProject)
- {
- dst = Application.ProjectDirectory + "\\images\\dropcaps\\%Filename%";
- attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
- }
- else
- {
- dst = ActiveDocument.Path + "\\images\\dropcaps\\%Filename%";
- attr = "images/dropcaps/%Filename%";
- }
- }
-
- function dropfxnow()
- {
- Application.FX.CopyFile(src, dst);
- Application.FX.HTML('<IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml(Description, 0)%' + '" BORDER="0" ALIGN="LEFT">');
- }
-
- // First, check if the file is saved
- if (ActiveDocument.Path != "")
- {
- buildpath();
- dropfxnow();
- }
- else
- {
- ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
-
- if (ans == 1)
- {
- ActiveDocument.SaveAs();
- }
- if (ActiveDocument.Path != "") //check again if they did indeed save and name file
- {
- buildpath();
- dropfxnow();
- }
- }
-
- ]]>
- </SCRIPT>
- </Item>
-
- <!-- Drop Caps: Done as of August 11th -->
-
- <!-- CSS Files: Done as of August 12th -->
-
- <Item Type="File" CLASS="Cascading Style Sheet" ID="%Filename%">
- <Icon SRC="mwcos.gif"/>
- <Description>Ask:%Description%:{Description Of Style Sheet}</Description>
- <Filename SRC="%Filename%"/>
- <SCRIPT LANGUAGE="JScript"><![CDATA[
- var src, dest, attr;
- src = "%Pathname%" + "%thisItem.SQ_getChildAttribute("Filename", 0, "SRC")%";
-
- function buildpath()
- {
- if (ActiveDocument.InCurrentProject)
- {
- dst = Application.ProjectDirectory + "\\styles\\%Filename%";
- attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
- }
- else
- {
- dst = ActiveDocument.Path + "\\styles\\%Filename%";
- attr = "styles/%Filename%";
- }
- }
-
- function dropfxnow()
- {
- if (Application.WritableFileExists(src))
- {
- Application.FX.CopyFile(src, dst);
- Application.FX.HTML('<LINK HREF=\"' + attr + '\" TYPE=\"text/css" REL="stylesheet" TITLE="%Description%" ID="%Filename%">',null,'HEAD','%Filename%');
- }
- else
- {
- Application.NoticeBox("Sorry, the destination file can't be written",null, null,"Cancel");
- }
- }
-
- // First, check if the file is saved
- if (ActiveDocument.Path != "")
- {
- buildpath();
- dropfxnow();
- }
- else
- {
- ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
-
- if (ans == 1)
- {
- ActiveDocument.SaveAs();
- }
- if (ActiveDocument.Path != "") //check again if they did indeed save and name file
- {
- buildpath();
- dropfxnow();
- }
- }
-
-
- ]]>
- </SCRIPT>
- </Item>
-
- <!-- CSS Files: Done as of August 12th -->
-
-
- <!-- Decor Item Templates August 10th -->
-
- <Item Type="File" CLASS="SQ Decor Arrow Button" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
- <Icon SRC="%Filename%"/>
- <Description>%ASK:Description:%{Arrow ALT Text}</Description>
- <Filename SRC="%Filename%"/>
- <SCRIPT LANGUAGE="JScript"><![CDATA[
- var src, dest, attr;
- src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Icon, 0, SRC)%";
-
- function buildpath()
- {
- if (ActiveDocument.InCurrentProject)
- {
- dst = Application.ProjectDirectory + "\\SMDecors\\%Filename%";
- attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
- }
- else
- {
- dst = ActiveDocument.Path + "\\SMDecors\\%Filename%";
- attr = "SMDecors/%Filename%";
- }
- }
-
- function dropfxnow()
- {
- Application.FX.CopyFile(src, dst);
- Application.FX.SelectDropPoint();
- Application.FX.HTML('<A HREF=\"{Choose URL}\"><IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0"><\/A>',null,null,null,null,true);
- Application.FX.ShowDialog('ANCHOR');
- }
-
- // First, check if the file is saved
- if (ActiveDocument.Path != "")
- {
- buildpath();
- dropfxnow();
- }
- else
- {
- ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
-
- if (ans == 1)
- {
- ActiveDocument.SaveAs();
- }
- if (ActiveDocument.Path != "") //check again if they did indeed save and name file
- {
- buildpath();
- dropfxnow();
- }
- }
-
- ]]>
- </SCRIPT>
- </Item>
-
- <Item Type="File" CLASS="SQ Decors Background" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
- <Icon SRC="%Filename%"/>
- <Description>Background: %Filename%</Description>
- <Filename SRC="%Filename%"/>
- <SCRIPT LANGUAGE="JScript"><![CDATA[
- var src, dest, attr;
- src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Icon, 0, SRC)%";
-
- function buildpath()
- {
- if (ActiveDocument.InCurrentProject)
- {
- dst = Application.ProjectDirectory + "\\SMDecors\\%Filename%";
- attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
- }
- else
- {
- dst = ActiveDocument.Path + "\\SMDecors\\%Filename%";
- attr = "SMDecors/%Filename%";
- }
- }
-
- function dropfxnow()
- {
- // Only attmpt to copy the file if the SRC is not empty
- if ("%thisItem.SQ_getChildAttribute("Filename", 0, "SRC")%" != "")
- {
- Application.FX.CopyFile(src, dst);
- Application.FX.SetAttribute('BODY', 'BACKGROUND', attr, 'first');
- }
- else
- {
- Application.FX.SetAttribute('BODY', 'BACKGROUND', '', 'first');
- }
- }
-
- // Check if the file is saved
-
- if (ActiveDocument.Path != "")
- {
- buildpath();
- dropfxnow();
- }
- else
- {
- ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
-
- if (ans == 1)
- {
- ActiveDocument.SaveAs();
- }
- if (ActiveDocument.Path != "") //check again if they did indeed save and name file
- {
- buildpath();
- dropfxnow();
- }
- }
- ]]>
- </SCRIPT>
- </Item>
-
- <Item Type="File" CLASS="SQ Decor Banner" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
- <Icon SRC="%Filename%"/>
- <Description>%ASK:Description:%{Banner ALT Text}</Description>
- <Filename SRC="%Filename%"/>
- <SCRIPT LANGUAGE="JScript"><![CDATA[
- var src, dest, attr;
- src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Icon, 0, SRC)%";
-
- function buildpath()
- {
- if (ActiveDocument.InCurrentProject)
- {
- dst = Application.ProjectDirectory + "\\SMDecors\\%Filename%";
- attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
- }
- else
- {
- dst = ActiveDocument.Path + "\\SMDecors\\%Filename%";
- attr = "SMDecors/%Filename%";
- }
- }
-
- function dropfxnow()
- {
- Application.FX.CopyFile(src, dst);
- Application.FX.SelectDropPoint();
- Application.FX.HTML('<IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0">');
- }
-
- // First, check if the file is saved
- if (ActiveDocument.Path != "")
- {
- buildpath();
- dropfxnow();
- }
- else
- {
- ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
-
- if (ans == 1)
- {
- ActiveDocument.SaveAs();
- }
- if (ActiveDocument.Path != "") //check again if they did indeed save and name file
- {
- buildpath();
- dropfxnow();
- }
- }
-
- ]]>
- </SCRIPT>
- </Item>
-
- <Item Type="File" CLASS="SQ Decor Bulleted List" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
- <Icon SRC="%Filename%"/>
- <Description>*</Description>
- <Filename SRC="%Filename%"/>
- <SCRIPT LANGUAGE="JScript"><![CDATA[
- var src, dest, attr;
- src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Icon, 0, SRC)%";
-
- function buildpath()
- {
- if (ActiveDocument.InCurrentProject)
- {
- dst = Application.ProjectDirectory + "\\SMDecors\\%Filename%";
- attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
- }
- else
- {
- dst = ActiveDocument.Path + "\\SMDecors\\%Filename%";
- attr = "SMDecors/%Filename%";
- }
- }
-
- function dropfxnow()
- {
- Application.FX.SelectDropPoint();
- Application.FX.CopyFile(src, dst);
- Application.FX.HTML('<DL><DT><IMG SRC="' + attr + '" ALT="*" BORDER="0" HSPACE="5" CLASS="SQBULLET"><\/DT><\/DL>');
- Selection.MoveLeft(0);Selection.MoveRight(0);
- }
-
- // First, check if the file is saved
- if (ActiveDocument.Path != "")
- {
- buildpath();
- dropfxnow();
- }
- else
- {
- ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
-
- if (ans == 1)
- {
- ActiveDocument.SaveAs();
- }
- if (ActiveDocument.Path != "") //check again if they did indeed save and name file
- {
- buildpath();
- dropfxnow();
- }
- }
-
- ]]>
- </SCRIPT>
- </Item>
-
- <Item Type="File" CLASS="SQ Decor Button" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
- <Icon SRC="%Filename%"/>
- <Description>%ASK:Description:%{Button ALT Text}</Description>
- <Filename SRC="%Filename%"/>
- <SCRIPT LANGUAGE="JScript"><![CDATA[
- var src, dest, attr;
- src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Icon, 0, SRC)%";
-
- function buildpath()
- {
- if (ActiveDocument.InCurrentProject)
- {
- dst = Application.ProjectDirectory + "\\SMDecors\\%Filename%";
- attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
- }
- else
- {
- dst = ActiveDocument.Path + "\\SMDecors\\%Filename%";
- attr = "SMDecors/%Filename%";
- }
- }
-
- function dropfxnow()
- {
- Application.FX.CopyFile(src, dst);
- Application.FX.SelectDropPoint();
- Application.FX.HTML('<A HREF=\"{Choose URL}\"><IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0"><\/A>',null,null,null,null,true);
- Application.FX.ShowDialog('ANCHOR');
- }
-
- // First, check if the file is saved
- if (ActiveDocument.Path != "")
- {
- buildpath();
- dropfxnow();
- }
- else
- {
- ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
-
- if (ans == 1)
- {
- ActiveDocument.SaveAs();
- }
- if (ActiveDocument.Path != "") //check again if they did indeed save and name file
- {
- buildpath();
- dropfxnow();
- }
- }
-
- ]]>
- </SCRIPT>
- </Item>
-
- <Item Type="File" CLASS="SQ Decor Horizontal Rule" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
- <Icon SRC="%Filename%"/>
- <Description>%ASK:Description:%--------------------</Description>
- <Filename SRC="%Filename%"/>
- <SCRIPT LANGUAGE="JScript"><![CDATA[
- var src, dest, attr;
- src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Icon, 0, SRC)%";
-
- function buildpath()
- {
- if (ActiveDocument.InCurrentProject)
- {
- dst = Application.ProjectDirectory + "\\SMDecors\\%Filename%";
- attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
- }
- else
- {
- dst = ActiveDocument.Path + "\\SMDecors\\%Filename%";
- attr = "SMDecors/%Filename%";
- }
- }
-
- function dropfxnow()
- {
- Application.FX.CopyFile(src, dst);
- Application.FX.HTML('<P ALIGN=\"CENTER\"><IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml(Description, 0)%' + '" BORDER="0"><\/P>');
- }
-
- // First, check if the file is saved
- if (ActiveDocument.Path != "")
- {
- buildpath();
- dropfxnow();
- }
- else
- {
- ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
-
- if (ans == 1)
- {
- ActiveDocument.SaveAs();
- }
- if (ActiveDocument.Path != "") //check again if they did indeed save and name file
- {
- buildpath();
- dropfxnow();
- }
- }
-
- ]]>
- </SCRIPT>
- </Item>
-
- <!-- Decor Item Templates August 10th -->
-
- <!-- Specific URL Buttons: Done as of Aug 29th -->
-
- <Item Type="File" CLASS="Button: Specific URL" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
- <Icon SRC="%Filename%"/>
- <Description>%ASK:Description:%{Button ALT Text}</Description>
- <Url HREF="%ASK:URL:%{Enter URL here}"/>
- <Filename SRC="%Filename%"/>
- <SCRIPT LANGUAGE="JScript"><![CDATA[
- var src, dest, attr;
- src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
-
- function buildpath()
- {
- if (ActiveDocument.InCurrentProject)
- {
- dst = Application.ProjectDirectory + "\\images\\buttons\\%Filename%";
- attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
- }
- else
- {
- dst = ActiveDocument.Path + "\\images\\buttons\\%Filename%";
- attr = "images/buttons/%Filename%";
- }
- }
-
- function dropfxnow()
- {
- Application.FX.CopyFile(src, dst);
- Application.FX.SelectDropPoint();
- Application.FX.HTML('<A HREF=\"%thisItem.SQ_getChildAttribute(URL, 0, HREF)%\"><IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0"><\/A>',null,null,null,null,true);
- Application.FX.ShowDialog('ANCHOR');
- }
-
- // First, check if the file is saved
- if (ActiveDocument.Path != "")
- {
- buildpath();
- dropfxnow();
- }
- else
- {
- ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
-
- if (ans == 1)
- {
- ActiveDocument.SaveAs();
- }
- if (ActiveDocument.Path != "") //check again if they did indeed save and name file
- {
- buildpath();
- dropfxnow();
- }
- }
-
- ]]>
- </SCRIPT>
- </Item>
-
- <!-- Specific URL Buttons: Done as of Aug 29th -->
-
- <Item TYPE="Text" CLASS="Codelet File" ID="%Filename%">
- <Icon SRC="scripttags.gif"/>
- <Description>%ASK:Description:%{Codelet Description}</Description>
- <Filename SRC="%Filename%"/>
- <SCRIPT LANGUAGE="JSCRIPT">
- <![CDATA[
-
- Application.FX.HTML("","%Pathname%%Filename%","HEAD","%Filename%");
-
- ]]>
- </SCRIPT>
-
- </Item>
-
- <Item TYPE="Text" CLASS="TextData" ID="%ID%">
- <Icon SRC="htmltags.gif"/>
- <Description>%ASK:Description:%{Description}</Description>
- <TextData><![CDATA[%Text%]]></TextData>
- <SCRIPT LANGUAGE="JSCRIPT">
- <![CDATA[
- Application.FX.SelectDropPoint();
- var textFX = '%thisItem.SQ_getChildInnerHtml('TextData', 0)%';
- Selection.TypeText(textFX);
- ]]>
- </SCRIPT>
- </Item>
-
- <!-- AVI Movies: Done as of Aug 29th -->
-
- <Item Type="File" CLASS="AVI" ID="%Filename%" FILEFILTER="*.avi">
- <Description>%ASK:Description:%{AVI Movie Description}</Description>
- <Dimensions WIDTH="%ASK:Width:%{Width of Movie}" HEIGHT="%ASK:Height:%{Height of Movie}"/>
- <Filename SRC="%Filename%"/>
- <Icon SRC="movie.gif"/>
- <SCRIPT LANGUAGE="JScript"><![CDATA[
- var src, dest, attr;
- src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
-
- function buildpath()
- {
- if (ActiveDocument.InCurrentProject)
- {
- dst = Application.ProjectDirectory + "\\multimedia\\%Filename%";
- attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
- }
- else
- {
- dst = ActiveDocument.Path + "\\multimedia\\%Filename%";
- attr = "multimedia/%Filename%";
- }
- }
-
- function dropfxnow()
- {
- Application.FX.CopyFile(src, dst);
- Application.FX.SelectDropPoint();
- Application.FX.HTML('<EMBED SRC=\"' + attr + '\" HEIGHT=\"%thisItem.SQ_getChildAttribute(Dimensions, 0 , HEIGHT)%\" WIDTH=\"%thisItem.SQ_getChildAttribute(Dimensions, 0 , WIDTH)%\">');
- }
-
- // First, check if the file is saved
- if (ActiveDocument.Path != "")
- {
- buildpath();
- dropfxnow();
- }
- else
- {
- ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
-
- if (ans == 1)
- {
- ActiveDocument.SaveAs();
- }
- if (ActiveDocument.Path != "") //check again if they did indeed save and name file
- {
- buildpath();
- dropfxnow();
- }
- }
-
- ]]>
- </SCRIPT>
- </Item>
-
- <!-- Avi Movies: Done as of Aug 29th -->
-
- <!-- Quicktime Movies: Done as of Aug 29th -->
-
- <Item Type="File" CLASS="QuickTime" ID="%Filename%" FILEFILTER="*.mov">
- <Description>%ASK:Description:%{QuickTime Movie Description}</Description>
- <Dimensions WIDTH="%ASK:Width:%{Width of Movie}" HEIGHT="%ASK:Height:%{Height of Movie}"/>
- <Filename SRC="%Filename%"/>
- <Icon SRC="movie.gif"/>
- <SCRIPT LANGUAGE="JScript"><![CDATA[
- var src, dest, attr;
- src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
-
- function buildpath()
- {
- if (ActiveDocument.InCurrentProject)
- {
- dst = Application.ProjectDirectory + "\\multimedia\\%Filename%";
- attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
- }
- else
- {
- dst = ActiveDocument.Path + "\\multimedia\\%Filename%";
- attr = "multimedia/%Filename%";
- }
- }
-
- function dropfxnow()
- {
- Application.FX.CopyFile(src, dst);
- Application.FX.SelectDropPoint();
- Application.FX.HTML('<EMBED SRC=\"' + attr + '\" HEIGHT=\"%thisItem.SQ_getChildAttribute(Dimensions, 0 , HEIGHT)%\" WIDTH=\"%thisItem.SQ_getChildAttribute(Dimensions, 0 , WIDTH)%\">');
- }
-
- // First, check if the file is saved
- if (ActiveDocument.Path != "")
- {
- buildpath();
- dropfxnow();
- }
- else
- {
- ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
-
- if (ans == 1)
- {
- ActiveDocument.SaveAs();
- }
- if (ActiveDocument.Path != "") //check again if they did indeed save and name file
- {
- buildpath();
- dropfxnow();
- }
- }
-
- ]]>
- </SCRIPT>
- </Item>
-
- <!-- Quicktime Movies: Done as of Aug 29th -->
-
- <!-- Shockwave: Done as of Aug 29th -->
-
- <Item Type="File" CLASS="Shockwave" ID="%Filename%" FILEFILTER="*.dcr">
- <Description>%ASK:Description:%{Shockwave Description}</Description>
- <Dimensions WIDTH="%ASK:Width:%{Width}" HEIGHT="%ASK:Height:%{Height}"/>
- <Filename SRC="%Filename%"/>
- <Icon SRC="burst.gif"/>
- <SCRIPT LANGUAGE="JScript"><![CDATA[
- var src, dest, attr;
- src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
-
- function buildpath()
- {
- if (ActiveDocument.InCurrentProject)
- {
- dst = Application.ProjectDirectory + "\\multimedia\\%Filename%";
- attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
- }
- else
- {
- dst = ActiveDocument.Path + "\\multimedia\\%Filename%";
- attr = "multimedia/%Filename%";
- }
- }
-
- function dropfxnow()
- {
- Application.FX.CopyFile(src, dst);
- Application.FX.SelectDropPoint();
- Application.FX.HTML('<EMBED SRC=\"' + attr + '\" HEIGHT=\"%thisItem.SQ_getChildAttribute(Dimensions, 0 , HEIGHT)%\" WIDTH=\"%thisItem.SQ_getChildAttribute(Dimensions, 0 , WIDTH)%\">');
- }
-
- // First, check if the file is saved
- if (ActiveDocument.Path != "")
- {
- buildpath();
- dropfxnow();
- }
- else
- {
- ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
-
- if (ans == 1)
- {
- ActiveDocument.SaveAs();
- }
- if (ActiveDocument.Path != "") //check again if they did indeed save and name file
- {
- buildpath();
- dropfxnow();
- }
- }
-
- ]]>
- </SCRIPT>
- </Item>
-
- <!-- Shockwave: Done as of Aug 29th -->
-
- <!-- VRML Worlds: Done as of Aug 29th -->
-
- <Item Type="File" CLASS="VRML" ID="%Filename%" FILEFILTER="*.wrl">
- <Description>%ASK:Description:%{VRML World Description}</Description>
- <Dimensions WIDTH="%ASK:Width:%{Width}" HEIGHT="%ASK:Height:%{Height}"/>
- <Filename SRC="%Filename%"/>
- <Icon SRC="world1.gif"/>
- <SCRIPT LANGUAGE="JScript"><![CDATA[
- var src, dest, attr;
- src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
-
- function buildpath()
- {
- if (ActiveDocument.InCurrentProject)
- {
- dst = Application.ProjectDirectory + "\\multimedia\\%Filename%";
- attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
- }
- else
- {
- dst = ActiveDocument.Path + "\\multimedia\\%Filename%";
- attr = "multimedia/%Filename%";
- }
- }
-
- function dropfxnow()
- {
- Application.FX.CopyFile(src, dst);
- Application.FX.SelectDropPoint();
- Application.FX.HTML('<EMBED SRC=\"' + attr + '\" HEIGHT=\"%thisItem.SQ_getChildAttribute(Dimensions, 0 , HEIGHT)%\" WIDTH=\"%thisItem.SQ_getChildAttribute(Dimensions, 0 , WIDTH)%\">');
- }
-
- // First, check if the file is saved
- if (ActiveDocument.Path != "")
- {
- buildpath();
- dropfxnow();
- }
- else
- {
- ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
-
- if (ans == 1)
- {
- ActiveDocument.SaveAs();
- }
- if (ActiveDocument.Path != "") //check again if they did indeed save and name file
- {
- buildpath();
- dropfxnow();
- }
- }
-
- ]]>
- </SCRIPT>
- </Item>
-
- <!-- VRML Worlds: Done as of Aug 29th -->
-
- </Items>