嵌入红色气泡时发生Javascript错误
嗨,我正在尝试将一个客户(他的红色泡泡商店)的redbubble代码嵌入到我的站点中,并将其嵌入到joomla站点中,但脚本有问题嵌入红色气泡时发生Javascript错误,javascript,jquery,iframe,Javascript,Jquery,Iframe,嗨,我正在尝试将一个客户(他的红色泡泡商店)的redbubble代码嵌入到我的站点中,并将其嵌入到joomla站点中,但脚本有问题 新的RBExternalPortfolio('www.redbubble.com','classiceggshell',5,5).renderFrame()好吧,我也有同样的问题,出于某种原因,脚本不在那里,但我能够找到它: RBExternalPortfolio = function(t, e, n, i) { var a = this; a.
新的RBExternalPortfolio('www.redbubble.com','classiceggshell',5,5).renderFrame()代码>好吧,我也有同样的问题,出于某种原因,脚本不在那里,但我能够找到它:
RBExternalPortfolio = function(t, e, n, i) {
var a = this;
a.domain = t, a.rows = n, a.columns = i, a.user_name = e, a.getHeight = function() {
return 222 * a.rows + 85
}, a.getWidth = function() {
return 240 * a.columns + 26
}, a.getSrc = function() {
return "http://" + a.domain + "/people/" + a.user_name + "/external-portfolio?count=" + a.rows * a.columns
}, a.createIframe = function() {
var t = document.createElement("iframe");
return t.src = a.getSrc(), t.width = a.getWidth(), t.height = a.getHeight(), t.frameBorder = 0, t.scrolling = "no", t.setAttribute("allowtransparency", "true"), t
}, a.renderIframe = function() {
var t = document.getElementById("rb-xzfcxvzx");
t.parentNode.replaceChild(a.createIframe(), t)
}
};
发件人:
然后,我在本地保存了一份副本,并将getSrc行更改为硬代码点,然后将其更改为我的对开本,如下所示:
return "http://redbubble.com/people/<yourname>/external-portfolio?count=" + a.rows * a.columns
返回“http://redbubble.com/people//external-portfolio?count=“+a.行*a.列
糟糕的是,他们还没有修复它,但代码至少在那里 检查文档。。您在脚本标记的src
上引用的脚本不存在<代码>http://www.redbubble.com/assets/external_portfolio.js
什么文档?你能提供一个链接吗?