...

View Full Version : Can anyone see what's wrong here?



cowboysdude
09-02-2009, 12:58 AM
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??


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

Fumigator
09-02-2009, 03:00 AM
Oh sure, you can see the generated HTML but you won't let us see it.. :(

tomws
09-02-2009, 03:00 AM
If the page source is correct, PHP has done its job. You'll need to look at your JavaScript.

cowboysdude
09-03-2009, 12:24 PM
I will look at the java Thank you! Sorry for not posting the HTML..



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum