View Full Version : Does not display the banner in the local.

10-07-2014, 02:05 PM
1) Script Title:

2) Script URL (on DD):

3) Describe problem:
Everything works correctly in the remote.
It does not work locally, use the following script: <img src="file:///home/spotcity/Locale1.jpg">
Where am I wrong?

10-08-2014, 01:20 AM
Lots of things will not work locally if the browser 'thinks' it's possibly protecting you from dangerous code or a security violation of one sort or another. This is particularly an issue when there any of the following involved:

iframe - all three of these can trigger cross domain and other security issues in most browsers

To a lesser extent:

javascript - IE often thinks any local javascript is a potential security violation

However, it's possible that there is no other problem at work in this particular situation other than an incorrect path.

The bottom line though is, since the object of almost all presentational code is to display it on the web, a problem that is only apparent locally is generally a non-issue. Is there any reason why it's anything more than a slight inconvenience here?

10-09-2014, 03:16 PM
Yes, I have the need that the script takes some banner remotely, and some banner locally.
I installed the monitor with pc in 20 public places which display banner. Since I send the graphic content via html page, using a single html page for all 20 local. 20 In public places I have to display 18 banners are all the same, however only 2 banners that advertise the same room, I wanted to pass on the 2 banners that are on the local PC. Saving 2 banners on all 20 pc and the path on the same script, each 2 pc visualized their banner.
Is there a solution?
This script does not render gif images? jpg only?
Thank you so much, sorry, but I translated with google :)

10-09-2014, 03:26 PM
or .swf?

10-09-2014, 04:11 PM
I'm a little confused what you're asking now. No javascript will show a local image on the web, except, and only sometimes, on the computer where the local image is. You can see local things locally as long as the browser doesn't think this is a security violation. Many browsers require that all pages, scripts, and content be in the same folder for this, and as I said before, sometimes IE will block any local javascript. (when IE does this, it usually gives you the option to approve it, but the message displayed is often poorly worded and scary sounding) For live pages, all images must be uploaded to the server. Since you are talking about iframe ticker, anything that you can get to show up on a page that is in an iframe should be able to be displayed in the ticker. But, because the ticker hides the content it isn't currently showing you by using display: none, some items (images, Flash, etc.) might not load until they are no longer display: none for long enough for them to be downloaded to the browser. The ticker isn't magic. Anything that would take awhile to download, just because you cannot see it right away, still needs time to download. The script can be modified so that unseen content is hidden in a different manner. That will probably help with large files, but will not completely eliminate the need for images and other large (in byte size) items to download before they can be seen. I think I have such a modified version of the script around here somewhere. If I can find it I will get it to you, otherwise I will write the modifications from scratch and get that to you. But, since I'm not exactly sure what the problem is, this might not be the solution to it.

OK, here's the code for a slightly improved exfile.htm (as mentioned above):

<script language="JavaScript1.2">

//IFRAME TICKER- By Dynamic Drive (http://www.dynamicdrive.com)

//configure delay between changing messages (3000=3 seconds)
var delay=3000

var ie4=document.all

var curindex=0
var totalcontent=0

function get_total(){
if (ie4){
while (eval("document.all.content"+totalcontent))
while (document.getElementById("content"+totalcontent))

function contract_all(){
for (y=0;y<totalcontent;y++){
if (ie4)

function expand_one(which){
if (ie4)

function rotate_content(){
curindex=(curindex<totalcontent-1)? curindex+1: 0



<BODY bgColor=#FFFFE1>

<!--ADD YOUR TICKER CONTENT BELOW, by wrapping each one inside a <DIV> as shown below.-->
<!--For each DIV, increment its ID attribute for each additional content (ie: "content1", "content2" etc)-->

<div id="content0" style="position: absolute; top: 0; left: 0; visibility:''">

<!-- ADD TICKER's CONTENT #1 HERE--------------------->

<p align="left"><strong><font face="Verdana"><small><a href="http://www.dynamicdrive.com/dynamicindex9/encrypter.htm" target="_top">Source
code encrypter</a>&nbsp;</small></font></strong><br>
<font face="Verdana" size="2">Scramble the source of any chunk of code using
this unique script.</font></p>

<!-- END CONTENT #1----------------->


<div id="content1" style="position: absolute; top: 0; left: 0; visibility: hidden">

<!-- ADD TICKER's CONTENT #2 HERE--------------------->

<p align="left"><strong><font face="Verdana"><small><a href="http://www.dynamicdrive.com/dynamicindex5/flashlink.htm" target="_top">Flashing
<font face="Verdana"><small>Bring attention to special links, by making them

<!-- END CONTENT #2----------------->


<div id="content2" style="position: absolute; top: 0; left: 0; visibility: hidden">

<!-- ADD TICKER's CONTENT #3 HERE--------------------->

<p align="left"><small><strong><font face="Verdana"><a href="http://www.dynamicdrive.com/dynamicindex13/roamcursor.htm" target="_top">Roaming
<small><font face="Verdana">Display a second, &quot;roaming&quot; cursor on your
page with this fun animation script.</font></small></p>

<!-- END CONTENT #3----------------->


<div id="content3" style="position: absolute; top: 0; left: 0; visibility: hidden">

<!-- ADD TICKER's CONTENT #4 HERE--------------------->

<p align="left"><font face="Verdana"><strong><a href="http://www.dynamicdrive.com/dynamicindex11/animatedtitle.htm" target="_top"><small>Animated
Document title</small></a><br>
</strong><small>Animate into view your document's title!</small></font></p>

<!-- END CONTENT #4----------------->


If you want more help - please post a link to the page on your site that shows the problem.

10-11-2014, 05:28 PM
Thank you so much for the availability, I solved by creating many html pages. I also added gif. Good work, thanks again and see you soon.