在 *_edgePreload.js 文件中导航到文件末尾,其中显示:
})("EDGE-XXXXXXXX");
其中 ID 与您的 HTML 源代码中的 ID 相同。在这个确切的字符串(可能有一些空格)之前立即添加一个新变量,如下所示(确保 dlContent 尚未分配类似的节,如果是则替换该分配 - 我猜你的 js 文件被缩小了所以这看起来与您的版本不同,但粘贴到文件中时它仍然可以工作!):
dlContent={
dom: [
{
id:'Poster',
type:'image',
tag:'img',
linkURL:"URL/to/some/content",
//This line can be omitted if no linking of the image is desired
linkTarget:"_top",//omit this line if the above line has been omitted
rect:['0','0','100%','100%','auto','auto'],
//values in order: x-pos, y-pos, width, height, ?, ?
// not sure what the two auto values correspond to right now
// the rectangle is the "viewport" into what would be the animation in better browsers.
fill:["rgba(0,0,0,0)",'/path/to/an/image.jpg','0px','0px']
// values in order: background colour and alpha transparency, an image to use, image position x and y within the rectangle defined above.
}]};