任何人都可以帮我为我的用户创建一个嵌入代码吗? [英] can anybody help me create an embed code for my users?

查看:185
本文介绍了任何人都可以帮我为我的用户创建一个嵌入代码吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,任何人都可以帮助我解决嵌入问题吗?我需要知道我使用哪些代码来允许用户在他们自己的网站上使用,有点像disqus和其他网站是有一个嵌入代码,它只是提示你复制和粘贴它我怎样才能做到这一点我的滑块工具用户可以在自己的网站上使用它

解决方案

以下是过去提出的类似问题的一些示例代码:

 < script type ='text / javascript'charset ='utf-8'> 
var iframe = document.createElement('iframe');
document.body.appendChild(iframe);

iframe.src ='您想提供的内容网址';
iframe.width ='你想要的宽度';
iframe.height ='你想要的高度';
< / script>

更多信息: https://stackoverflow.com/a/14099243/1905554


Hello can anyone help me with an embed question? I need to know what code I use to allow users to use on thier own websites, kinda like disqus and other websites were there is an embed code and it just prompts you to copy and paste it How can I do this for my slider tool so users can use it on there own websites

解决方案

Here's some sample code from a similar question asked in the past:

<script type='text/javascript' charset='utf-8'>     
   var iframe = document.createElement('iframe');       
   document.body.appendChild(iframe);

   iframe.src = 'URL OF CONTENT YOU WANT TO     PROVIDE';       
   iframe.width = 'THE WIDTH YOU WANT';
   iframe.height = 'THE HEIGHT YOU WANT';
</script>

More info here: https://stackoverflow.com/a/14099243/1905554

这篇关于任何人都可以帮我为我的用户创建一个嵌入代码吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆