Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can anyone see what's wrong here?

    This is what I have for my code... I load the page and check the html source and it's correct but it won't fire the overlay... suggestions??

    Code:
    <?php
    $lines = file('modules/mod_test/files.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
    foreach($lines as $line)
    {
        list($ol, $pic, $vid, $title) = explode('-', $line);
    	echo '<a href="#overlay" rel="#overlay'. $ol.'"><img src="/modules/mod_test/img/'. $pic .'" alt="picture here" /></a> '. $title.'&nbsp;<br />';
    }
    ?>
    
    <!-- overlays for videos -->
    
    <?php
    $lines = file('modules/mod_test/files.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
    foreach($lines as $line)
    {
        list($ol, $pic, $vid, $title) = explode('-', $line);
        echo '<div class="overlay" id="overlay' .$ol .'">';
        echo "<a href='$url/clips/$vid'>";
        echo "</div><br />";
    	
    } 
     ?>
     
     
    <!-- overlays for videos -->

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    Oh sure, you can see the generated HTML but you won't let us see it..

  • #3
    Senior Coder tomws's Avatar
    Join Date
    Nov 2007
    Location
    Arkansas
    Posts
    2,644
    Thanks
    29
    Thanked 330 Times in 326 Posts
    If the page source is correct, PHP has done its job. You'll need to look at your JavaScript.
    Are you a Help Vampire?

  • #4
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I will look at the java Thank you! Sorry for not posting the HTML..


  •  

    Posting Permissions

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