Results 1 to 6 of 6

Thread: Does not display the banner in the local.

  1. #1
    Join Date
    Oct 2014
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Does not display the banner in the local.

    1) Script Title:
    IFRAME TICKER

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...ame-ticker.htm

    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?
    thanks

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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
    AJAX
    frames

    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?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    komik82 (10-09-2014)

  4. #3
    Join Date
    Oct 2014
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    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

  5. #4
    Join Date
    Oct 2014
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    or .swf?

  6. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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):

    Code:
    <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))
    totalcontent++
    }
    else{
    while (document.getElementById("content"+totalcontent))
    totalcontent++
    }
    }
    
    function contract_all(){
    for (y=0;y<totalcontent;y++){
    if (ie4)
    eval("document.all.content"+y).style.visibility='hidden'
    else
    document.getElementById("content"+y).style.visibility='hidden'
    }
    }
    
    function expand_one(which){
    contract_all()
    if (ie4)
    eval("document.all.content"+which).style.visibility=""
    else
    document.getElementById("content"+which).style.visibility=""
    }
    
    function rotate_content(){
    get_total()
    contract_all()
    expand_one(curindex)
    curindex=(curindex<totalcontent-1)? curindex+1: 0
    setTimeout("rotate_content()",delay)
    }
    
    window.onload=rotate_content
    
    </script>
    
    <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>
    
    <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
    links</a>&nbsp;</small></font></strong><br>
    <font face="Verdana"><small>Bring attention to special links, by making them
    flash!</small></font></p>
    
    <!-- END CONTENT #2----------------->
    
    </div>
    
    <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
    Cursor</a>&nbsp;</font></strong></small><br>
    <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>
    
    <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----------------->
    
    </div>
    If you want more help - please post a link to the page on your site that shows the problem.
    Last edited by jscheuer1; 10-09-2014 at 07:21 PM. Reason: add updated iframe content page
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #6
    Join Date
    Oct 2014
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    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.

Similar Threads

  1. Change display of date for Local Time Script
    By Foundas in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 10-19-2011, 04:26 PM
  2. Display non-local file online
    By nPeep in forum HTML
    Replies: 0
    Last Post: 06-30-2008, 04:33 PM
  3. Random banner display
    By Saratoga Sam in forum JavaScript
    Replies: 1
    Last Post: 04-27-2006, 11:04 AM
  4. Local Time - date display?
    By jasper77 in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 12-01-2005, 09:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •