.复制代码到地址栏直接按回车就可以了.
10年积累的成都网站设计、网站制作经验,可以快速应对客户对网站的新想法和需求。提供各种问题对应的解决方案。让选择我们的客户得到更好、更有力的网络服务。我虽然不认识你,你也不认识我。但先网站制作后付款的网站建设流程,更有阿勒泰免费网站建设让你可以放心的选择与我们合作。
不过现在代码基本让腾迅封掉了,不能用了,尽管可以保存,可是刷新后还是没有变化的
这个只能在IE上用,使用jscript。
var WordApp=new ActiveXObject("Word.Application");
var wdCharacter=1
var wdOrientLandscape = 1
WordApp.Application.Visible=true;
var myDoc=WordApp.Documents.Add();
WordApp.ActiveDocument.PageSetup.Orientation = wdOrientLandscape
WordApp. Selection.ParagraphFormat.Alignment=1 //1居中对齐,0为居右
WordApp. Selection.Font.Bold=true
WordApp. Selection.Font.Size=20
WordApp. Selection.TypeText("我的标题");
WordApp. Selection.MoveRight(wdCharacter);//光标右移字符
WordApp.Selection.TypeParagraph() //插入段落 相当于br
WordApp. Selection.Font.Size=12
WordApp. Selection.TypeText("副标题"); //分行插入日期
WordApp.Selection.TypeParagraph() //插入段落
var myTable=myDoc.Tables.Add (WordApp.Selection.Range, 8,7) //8行7列的表格
var aa = "我的列标题"
for (i= 0;i7;i++)
{
with (myTable.Cell(1,i+1).Range)
{
font.Size = 12;
InsertAfter(aa);
ColumnWidth =4;
ParagraphFormat.Alignment =1; //设置对齐方式 水平对齐
}
}
for (i =0;i7;i++)
{
for (n =0;n7 ;n++)
{
with (myTable.Cell(i+2,n+1).Range)
{
font.Size = 12;
InsertAfter("bbbb");
ParagraphFormat.Alignment =1; //设置对齐方式 水平对齐
}
}
}
myDoc .saveAs("d:\\gc.doc"); //保存word
加个div括起来。。比如document.write("div align='right'");document.write(你的内容);document.write("/div");
如果需要右移可将下面第3组数据的0调到200之间就可以了``如:
javascript:window.top.space_addItem(1,15114,0,80,0,0,20); 纯白 原来的
javascript:window.top.space_addItem(1,15114,200,80,0,0,20); 纯白 (靠最右了)
若是效果没出``多回车几次就好了``肯定是小窝``
javascript:window.top.space_addItem(1,13089,0,80,0,0,20); 纯红
javascript:window.top.space_addItem(1,13046,0,80,0,0,20); 纯黑
javascript:window.top.space_addItem(1,21131,0,80,0,0,20); 土黄4叶草
javascript:window.top.space_addItem(1,13074,0,80,0,0,20); 米黄虚线横条
javascript:window.top.space_addItem(1,9553,0,80,0,0,20); 纯墨绿
javascript:window.top.space_addItem(1,16144,0,80,0,0,20); 纯深蓝
javascript:window.top.space_addItem(1,11287,0,80,0,0,20); 纯桃红
javascript:window.top.space_addItem(1,8466,0,80,0,0,20); 白底粉红大点
javascript:window.top.space_addItem(1,18776,0,80,0,0,20); 白底粉红小点
javascript:window.top.space_addItem(1,19699,0,150,0,0,20); 黑白横条
javascript:window.top.space_addItem(1,18746,0,80,100,100,20); 灰白相间横条
黑色的:
javascript:window.top.space_addItem(1,12287,0,80,0,0,20); 纯黑白点阵
javascript:window.top. space_addItem(1,12561,0,80,0,0,20); 纯黑 白色星辰
javascript:window.top.space_addItem(1,12563,0,80,0,0,20); 纯黑 珠子吊线
javascript:window.top.space_addItem(1,11400,0,80,0,0,20); 纯黑 荷花底纹
javascript:window.top.space_addItem(1,11396,0,80,0,0,20); 纯黑 带星星
javascript:window.top.space_addItem(1,12287,0,80,0,0,20); 纯黑白点阵
javascript:window.top.space_addItem(1,12561,0,80,0,0,20); 纯黑 白色星辰
javascript:window.top.space_addItem(1,12563,0,80,0,0,20); 纯黑 珠子吊线
javascript:window.top.space_addItem(1,11400,0,80,0,0,20); 纯黑 荷花底纹
javascript:window.top.space_addItem(1,11396,0,80,0,0,20); 纯黑 带星星
javascript:window.top.space_addItem(1,13085,300,80,300,300,20); 紫色
javascript:window.top.space_addItem(1,20215,300,80,300,300,20); 姿色,喜欢
javascript:window.top.space_addItem(1,20309,300,80,300,300,20); 蓝色,喜欢
javascript:window.top.space_addItem(1,21389,300,80,300,300,20); 紫红
javascript:window.top.space_addItem(1,21868,300,80,300,300,20); 桃红
javascript:window.top.space_addItem(1,20534,300,80,300,300,20); 蓝色带白点
javascript:window.top.space_addItem(1,21054,300,80,300,300,20); 红,(特)
javascript:window.top.space_addItem(1,21196,300,80,300,300,20); 往事
javascript:window.top.space_addItem(1,21334,300,80,300,300,20); 蓝色,喜欢
javascript:window.top.space_addItem(1,21615,300,80,300,300,20); 橘黄带星
javascript:window.top.space_addItem(1,21663,300,80,300,300,20); 泥黄色
javascript:window.top.space_addItem(1,21760,300,80,300,300,20); 青色点黄点
javascript:window.top.space_addItem(1,22044,300,80,300,300,20); 黑色白条
javascript:window.top.space_addItem(1,22047,300,80,300,300,20); 兰色带点
javascript:window.top.space_addItem(1,22661,210,0,0,50,20); 黑色
javascript:window.top.space_addItem(1,22654,210,0,0,50,20); 灰色,赞
javascript:window.top.space_addItem(1,22653,210,0,0,50,20); 黑
javascript:window.top.space_addItem(1,22637,210,0,0,50,20); 黑
javascript:window.top.space_addItem(1,22640,210,0,0,50,20); 黑,卜错
javascript:window.top.space_addItem(1,22635,210,0,0,50,20); 紫色
javascript:window.top.space_addItem(1,22634,210,0,0,50,20); 黑,、
javascript:window.top.space_addItem(1,22632,210,0,0,50,20); 灰色,很赞
javascript:window.top.space_addItem(1,22630,210,0,0,50,20); 红白
javascript:window.top.space_addItem(1,22627,210,0,0,50,20); 好多色,卜错
javascript:window.top.space_addItem(1,22617,210,0,0,50,20); 粉红
javascript:window.top.space_addItem(1,22616,210,0,0,50,20); 墨绿
javascript:window.top.space_addItem(1,22614,210,0,0,50,20); 黑
javascript:window.top.space_addItem(1,22613,210,0,0,50,20); 白红,卜错,
javascript:window.top.space_addItem(1,22612,210,0,0,50,20); 黑紫
javascript:window.top.space_addItem(1,22611,210,0,0,50,20); 黑
javascript:window.top.space_addItem(1,22610,210,0,0,50,20); 黑,
javascript:window.top.space_addItem(1,16034,120,0,0,50,20); 淡紫色
javascript:window.top.space_addItem(1,16147,120,0,0,50,20); 紫色
javascript:window.top.space_addItem(1,14382,120,0,0,50,20); 肌理的效果,
javascript:window.top.space_addItem(1,12242,120,0,0,50,20); 赭石
javascript:window.top.space_addItem(1,皮肤编号,移动距离,80,0,0,20);
javascript:window.top.space_addItem(1,22359,210,0,0,50,20); 黑黄冠
javascript:window.top.space_addItem(1,22374,210,0,0,50,20); 棕雪花
javascript:window.top.space_addItem(1,22370,210,0,0,50,20); 白红点星
javascript:window.top.space_addItem(1,22369,210,0,0,50,20); 白雪花
javascript:window.top.space_addItem(1,22368,210,0,0,50,20); 白加蓝雪花,
javascript:window.top.space_addItem(1,22361,210,0,0,50,20); 橄榄绿
javascript:window.top.space_addItem(1,22360,210,0,0,50,20); 黑雪花,
javascript:window.top.space_addItem(1,22363,210,0,0,50,20); 浅蓝
javascript:window.top.space_addItem(1,22357,210,0,0,50,20); 紫雪花
javascript:window.top.space_addItem(1,22301,210,0,0,50,20); 黄,
javascript:window.top.space_addItem(1,22180,210,0,0,50,20); 全黑,
javascript:window.top.space_addItem(1,22183,210,0,0,50,20); 乳白
javascript:window.top.space_addItem(1,22186,210,0,0,50,20); 黑灰,
javascript:window.top.space_addItem(1,22194,210,0,0,50,20); 黑,(很)
javascript:window.top.space_addItem(1,22244,210,0,0,50,20); 黑,紫色点
javascript:window.top.space_addItem(1,22250,210,0,0,50,20); 白,黄点
javascript:window.top.space_addItem(1,22047,210,0,0,50,20); 蓝点
javascript:window.top.space_addItem(1,22044,210,0,0,50,20); 黑,(好)
javascript:window.top.space_addItem(1,20161,210,0,0,50,20); 黑,
javascript:window.top.space_addItem(1,19302,210,0,0,50,20); 黑带红点,
javascript:window.top.space_addItem(1,22427,210,0,0,50,20); 白,蓝点
javascript:window.top.space_addItem(1,22425,210,0,0,50,20); 白,红点
javascript:window.top.space_addItem(1,22423,210,0,0,50,20); 黑玫瑰,
javascript:window.top.space_addItem(1,21609,210,0,0,50,20); 黑灰,水珠
javascript:window.top.space_addItem(1,20161,210,0,0,50,20); 这个就是黑色的
JS实现不了,用HTML或者CSS
div align="right"本行内容居右/div
如果用CSS则是这样:
div style="text-align: center;"本行内容居中/div
建议新手用第一个,等熟悉了CSS再用CSS实现。当然CSS实现更好。
align的参数可以是left、center或者right,分别对应左,中,右三种对齐方式,CSS的text-align也同理