针对“微博关注”无法嵌入在Visualforce Page的解决方案
来源:互联网 发布:java 日期选择控件 编辑:程序博客网 时间:2024/05/01 06:15
1.将以下代码,保存为一个heml页面:
复制代码
2.获取 微博按钮的代码
http://open.weibo.com/widget/followbutton.php
最后你会得到一个,如下的代码(UID不同)。
<wb:follow-button uid="2991975565" type="red_1" width="67" height="24" ></wb:follow-button>
- <HTML><HEAD><TITLE> 加密/解密HTML源代码</TITLE>
- <META content="text/HTML; charset=gb2312" http-equiv=Content-Type>
- <META content="script,windows" name=keywords>
- <STYLE>.tablinks A {COLOR: blue}
- .tablinks A:visited { COLOR: blue}
- .tablinks A:hover {COLOR: brown}
- input{ font-family: Tahoma; font-size: 9pt; color: #000080 }
- body,textarea{ font-family: Tahoma; font-size: 9pt; color: blue}
- </STYLE>
- </HEAD>
- <BODY bgColor=#D6D3CE leftMargin=0 marginwidth="0" scroll=no oncontextmenu="self.event.returnValue=false">
- <div align="center">
- <center>
- <TABLE border=0 cellPadding=0 cellSpacing=0 width="600">
- <TBODY>
- <TR>
- <TD align=left vAlign=top>
- <div align="center" style="width: 598; height: 42">
- <div align="center">
- <font color="#0066ff">加密页面源代码脚本
-
- <p><font color="#800000">将 你 的 页 面 源 代 码 粘 贴 在 下 面 的 框 内</p>
-
- <P align=center> </P>
- <P align=left><!--webbot bot="HTMLMarkup" startspan -->
- <SCRIPT language=JavaScript>
- var i=0;
- var ie=(document.all)?1:0;
- var ns=(document.layers)?1:0;
-
- function generate() /* Generation of "Compilation" */
- {
- code = document.pad.text.value;
- if (code)
- {
- document.pad.text.value='正在加密中...请等待!';
- setTimeout("compile()",1000);
- }
- else alert('提醒:还没有放入要加密的网页代码!')
- }
- function compile() /* The "Compilation" */
- {
- document.pad.text.value='';
- compilation=escape(code);
- document.pad.text.value="<script>\n<!--\ndocument.write(unescape(\""+compilation+"\"));\n//-->\n<\/script>";
- i++;
- alert("已将所选内容加密成功!请点预览查看效果!");
- }
- function selectCode() /* Selecting "Compilation" for Copying */
- {
- if(document.pad.text.value.length>0)
- {
- document.pad.text.focus();
- document.pad.text.select();
- }
- else alert('提醒:没有任何内容可以选定!')
- }
- function preview() /* Preview for the "Compilation" */
- {
- if(document.pad.text.value.length>0)
- {
- pr=window.open("","Preview","scrollbars=1,menubar=1,status=1,width=700,height=320,left=50,top=110");
- pr.document.write(document.pad.text.value);
- }
- else alert('提醒:没有任何内容可以预览!')
- }
- function uncompile() /* Decompiling
- a "Compilation" */
- {
- if (document.pad.text.value.length>0)
- {
- source=unescape(document.pad.text.value);
- document.pad.text.value=""+source+"";
- }
- else alert('提醒:请把你需要解密的代码放到此处!')
- }
- // -->
- </SCRIPT>
-
- <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
- <TBODY>
- <TR>
- <TD width="100%"><!-- Compilation Panel -->
- <FORM method=post name=pad align="center"><TEXTAREA cols=58 name=text rows=11 style="BACKGROUND-COLOR: #f0f0f0;width=100%"></TEXTAREA>
- <p align="center"><INPUT name=compileIt onclick=generate() type=button value=加密>
- <INPUT name=select onclick=selectCode() type=button value=选定>
- <INPUT name=view onclick=preview() type=button value=预览>
- <INPUT name=retur onclick=uncompile() type=button value=解密>
- <INPUT name=clear type=reset value=清除>
- </FORM><!-- Compilation Panel --></TD></TR></TBODY></TABLE><!--webbot bot="HTMLMarkup" endspan --></P>
- </table>
- </center>
- </body>
- </HTML>
2.获取 微博按钮的代码
http://open.weibo.com/widget/followbutton.php
最后你会得到一个,如下的代码(UID不同)。
<wb:follow-button uid="2991975565" type="red_1" width="67" height="24" ></wb:follow-button>
在将代码嵌入vf的时候,会报错,因为不允许<vb:follow-button> 这样的命名空间的语法。
然后使用刚才的HTML编码以下。
详见:http://www.hxdev.cn/thread-3488-1-4.html
- 针对“微博关注”无法嵌入在Visualforce Page的解决方案
- .NET2.0程序集无法在.net 4.0 中运行的解决方案--针对vsts测试项目
- Visualforce Page中的执行顺序
- 针对codeblocks无法使用的问题的解决方案
- 针对Linux安装Matlab无法启动错误的解决方案
- 针对vs2013运行项目无法打开.lib文件的解决方案
- VS2013无法嵌入互操作类型“Shell32.ShellClass"的解决方案
- 无法嵌入来自**的互操作类型解决方案
- Google正式发布TensorFlow Lite预览版,针对移动/嵌入设备的轻量级解决方案
- Google正式发布TensorFlow Lite预览版,针对移动/嵌入设备的轻量级解决方案
- 在web page中嵌入ace editor
- 把VisualForce Page 转换成 PDF
- example of using ajax in VisualForce page
- 针对微信分享限制的解决方案
- 在网页中嵌入任意字体的解决方案
- 在网页中嵌入任意字体的解决方案
- 在网页中嵌入任意字体的解决方案
- 针对:Arraylist集合无法修改,下一次枚举无法操作的解决方案
- MD5加密
- centos下面的ftp工具,PUREFTP,提示ERROR: MYSQL SERVER NOT FOUND.
- 秒杀多线程第十一篇 读者写者问题
- devexpress如何添加一个全选框
- 第十一次上机任务
- 针对“微博关注”无法嵌入在Visualforce Page的解决方案
- android手机插入耳机,播放外音
- 给2013届毕业生的29条建议
- Oracle常见错误问题收集和解决方案
- 不做开发好多年,最近又研究Access了!
- c++二进制文件输入输出
- MongoDB数据库的安装,数据操作,
- iOS开发笔记--TableView 详细解释
- TCP 三次握手