Jump to content


  • Posts

  • Joined

  • Last visited

bjeffries111's Achievements


Newbie (1/7)



  1. Does anyone know of a javascript slider that I can use that will do pretty much the same thing as you see here: http://www.flyteusa.com/flyteusa/index1.php (but view in IE or Chrome) ???
  2. Would anyone know why my javascript slider does not work in FireFox? Ironically it works well in Ie and Chrome. All I did was modify a JQuery slider to fit my needs and even before I Modified it, the slider still would not work in FireFoxPage: http://www.flyteusa.com/flyteusa/index1.phpCode: <style>html { margin:0;}#wrapper { margin:0; padding:0;}#featured{ width:1000px; padding:0; position:relative; height:800px; background:#fff; border:2px solid #333;}#featured ul.ui-tabs-nav{ position:absolute; top:0px; left:0; list-style:none; padding:0; margin:0; width:1000px; height: 800px;}#featured ul.ui-tabs-nav li{ padding:0; font-size:12px; color:#666; float:left; width:250px; height:250px;}#featured ul.ui-tabs-nav li span{ font-size:11px; font-family:Verdana; line-height:18px;}#featured .ui-tabs-panel{ width:400px; height:400px; background:#999; position:relative; overflow:hidden;}#featured .ui-tabs-hide{ display:none;}#featured li.ui-tabs-nav-item a{/*On Hover Style*/ display:block; height:100px; color:#333; background:#fff; line-height:20px; outline:none;}#featured li.ui-tabs-nav-item a:hover{ background:#f2f2f2;}#featured li.ui-tabs-selected{ /*Selected tab style*/ background:url('http://flyteusa.com/images/selected-item.gif') top left no-repeat;}#featured ul.ui-tabs-nav li.ui-tabs-selected a{ background:#ccc;}#featured ul.ui-tabs-nav li img{ float:left; margin:0; background:#fff; /*padding-top:1px; padding-left:1px; border:1px solid #eee;*/}#featured .ui-tabs-panel { position:absolute; left:250px; top:100px;}#featured .ui-tabs-panel .info{ position:absolute; top:332px; left:0; height:70px; width: 400px; background: url('http://flyteusa.com/flyteusa/sitemain/images/transparent-bg.png');}#featured .info h2{ font-size:18px; font-family:Georgia, serif; color:#fff; padding:5px; margin:0; overflow:hidden;}#featured .info p{ margin:0 5px; font-family:Verdana; font-size:11px; line-height:15px; color:#f0f0f0;}#featured .info a{ text-decoration:none; color:#fff;}#featured .info a:hover{ text-decoration:underline;}</style><!--//orginal script locations... google.com <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js" ></script> --><script type="text/javascript" src="http://flyteusa.com/flyteusa/sitemain/jscss/jquery.min.js" ></script><script type="text/javascript" src="http://flyteusa.com/flyteusa/sitemain/jscss/jquery-ui.min.js" ></script><script type="text/jscript"> $(document).ready(function(){ $("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true); });</script></head><body><div id="wrapper"><div align="center"><table width="1000" height="800" cellpadding="0" cellspacing="0" align="center"><tr><td valign="top"><div id="featured" ><img src="http://flyteusa.com/flyteusa/sitemain/images/Flyte_Rough_Black.png" width="350" border="0" style="position:absolute; left:275px;" /><br /><!--jQuery slider here--> <ul class="ui-tabs-nav"> <li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-1" style="margin-right:400px !important;"><a href="#fragment-1"><img src="http://flyteusa.com/flyteusa/sitemain/images/slider/atv-small.jpg" width="97" alt="" /><span></span></a></li> <li class="ui-tabs-nav-item" id="nav-fragment-2"><a href="#fragment-2"><img src="http://flyteusa.com/flyteusa/sitemain/images/slider/mx-small.jpg" width="97" alt="" /><span></span></a></li> <li class="ui-tabs-nav-item" id="nav-fragment-3" style="margin-right:400px !important;"><a href="#fragment-3"><img src="http://flyteusa.com/flyteusa/sitemain/images/slider/chp-small.jpg" width="97" alt="" /><span></span></a></li> <li class="ui-tabs-nav-item" id="nav-fragment-4"><a href="#fragment-4"><img src="http://flyteusa.com/flyteusa/sitemain/images/slider/mxa-small.jpg" width="97" alt="" /><span></span></a></li> </ul> <!-- First Content --> <div id="fragment-1" class="ui-tabs-panel" style=""> <img src="http://flyteusa.com/flyteusa/sitemain/images/slider/atv.jpg" width="400" alt="" /> <div class="info" > <h2><a href="#" >15+ Excellent High Speed Photographs</a></h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla tincidunt condimentum lacus. Pellentesque ut diam....<a href="#" >read more</a></p> </div> </div> <!-- Second Content --> <div id="fragment-2" class="ui-tabs-panel ui-tabs-hide" style=""> <img src="http://flyteusa.com/flyteusa/sitemain/images/slider/mx.jpg" width="400" alt="" /> <div class="info" > <h2><a href="#" >20 Beautiful Long Exposure Photographs</a></h2> <p>Vestibulum leo quam, accumsan nec porttitor a, euismod ac tortor. Sed ipsum lorem, sagittis non egestas id, suscipit....<a href="#" >read more</a></p> </div> </div> <!-- Third Content --> <div id="fragment-3" class="ui-tabs-panel ui-tabs-hide" style=""> <img src="http://flyteusa.com/flyteusa/sitemain/images/slider/chp.jpg" width="400" alt="" /> <div class="info" > <h2><a href="#" >35 Amazing Logo Designs</a></h2> <p>liquam erat volutpat. Proin id volutpat nisi. Nulla facilisi. Curabitur facilisis sollicitudin ornare....<a href="#" >read more</a></p> </div> </div> <!-- Fourth Content --> <div id="fragment-4" class="ui-tabs-panel ui-tabs-hide" style=""> <img src="http://flyteusa.com/flyteusa/sitemain/images/slider/mxa.jpg" width="400" alt="" /> <div class="info" > <h2><a href="#" >Create a Vintage Photograph in Photoshop</a></h2> <p>Quisque sed orci ut lacus viverra interdum ornare sed est. Donec porta, erat eu pretium luctus, leo augue sodales....<a href="#" >read more</a></p> </div> </div></div><!--end slider--></td></tr></table></div></div></body></html>
  3. I am having trouble getting the date to display properly from the server, I have tried many different ways and it is just not working.My table structure is set to TIMESTAMP and when I all something new through phpmyadmin I set the time to NOW. So it posts the current time of when I created the file. Now my issue is getting it to display properly. //$timestamp = $row['uptime'];//$file = $row['uptime'];//$lastmod = date("m-d-y", time($file));$uptime = time($row['uptime']);//echo date("m-d-y",$timestamp);$select = ("SELECT * FROM photo_albums ORDER BY uptime DESC LIMIT 5 ");$result = mysql_query($select) or die(mysql_error());while($row = mysql_fetch_array($result)) {echo "<li>" ."<span class='lpBold'>".$uptime."</span><br/>" ."</li>"; You can kind of see the different methods I have tried to get the proper time, unfortunately none of them have worked.I just want the date to be displayed like: 04-14-10Thanks for the insight,Brian
  4. I was wondering what is the most convenient way to upload photos to a database for an online gallery. Currently I am using excel CSV to upload all my photos.What i want to know is what is involved in coding an upload page to add photos to my site. The only thing is I would prefer my albums to be organized into folders by photographer or location. My photo gallery is already up and running and is split by the photographer or location, so I would prefer to keep things in this fashion. (I would upload about 2 albums a week with around 20 photos per album.)Would this be hard to code? or should I continue to use the CSV way?Thanks,Brian
  5. So my problem was all the code I added in the previous post was in an include file. That's where it was loosing the variable I was trying to get. I put all my code on the viewAlbum.php page and everything works fine..Thanks for your help.
  6. I ended up resorting back to my old code because it worked fine... Some other people changed it all around and it never worked so this is what I currently have. $result = mysql_query("SELECT * FROM photo_albums ORDER BY uptime DESC");while($row = mysql_fetch_array($result)) { echo '<div class="photoThumb">'; echo '<a href="viewAlbum.php?aid='.$row['aid'].'"><img src="' . $row['filepath']; echo $row['filename'] . '"'; echo 'border="0" /></a>'; echo '<br/>'; echo '<span class="thumbText"><a href="viewAlbum.php?aid='.$row['aid'].'">' . $row['stitle']; echo '</a><br/>'; echo $row['photog']; echo '</span>'; echo "</div>"; }mysql_close($con);
  7. oks o I tried this... $aid = mysql_real_escape_string($_GET['aid'], $con);var_dump($aid); and I got this:string(0) ""But I dont know what that means.. any suggestions??Thanks.
  8. That is pretty much how I have it set up but with different page names.I used the $aid = $_GET['aid']; but I cant tell you if it is doing its job because its giving me error messages in other parts of my code. Here is my new code $aid = $_GET['aid'];$result = mysql_query("SELECT * FROM photo_albums ORDER BY uptime DESC");while($row = mysql_fetch_array($result)) {echo "<div class='photoThumb'>";echo "<a href='viewAlbum.php?aid='$row['aid']'>";echo "<img src='$row['filepath']$row['filename']' border='0' />";echo "</a><br/><span class='thumbText'>";echo "<a href='viewAlbum.php?aid='$row['aid']'>$row['stitle']</a><br/>";echo "$row['photog']</span></div>";}mysql_close($con); ?> Still having issues..
  9. Well that is the problem itself. I manually typed in that number 1. I dont want to manually type it in. I want to figure out how to get php to input the aid number in itself. As of right now I have three albums, aid: 1,2,3. No matter what I click on it shows the photos for album 1, aid:1.How would I fix that?
  10. So I am a beginner at coding so bear with me on the quality of my code.I am trying to code a photo gallery and having some difficulties.I have two pages with the in includes:Photo.php - this one seems to work but could have some errors that are causing the second page to not work. $con = mysql_connect("....t","...","...");if (!$con) { die('Could not connect: ' . mysql_error()); }mysql_select_db("...", $con);$result = mysql_query("SELECT * FROM photo_albums ORDER BY uptime DESC");while($row = mysql_fetch_array($result)) { echo '<div class="photoThumb">'; echo '<a href="viewAlbum.php?aid='.$row['aid'].'"><img src="' . $row['filepath']; echo $row['filename'] . '"'; echo 'border="0" /></a>'; echo '<br/>'; echo '<span class="thumbText"><a href="viewAlbum.php?aid='.$row['aid'].'">' . $row['stitle']; echo '</a><br/>'; echo $row['photog']; echo '</span>'; echo "</div>"; }mysql_close($con); Next Page:viewAlbum.php - This on is the one that is not working properly. I cannot seem to get the page to call on the AID number from the thumbnail the user clicked on before. I can, although, manually type it in and make it display one album. $con = mysql_connect("...","...","...");if (!$con) { die('Could not connect: ' . mysql_error()); }mysql_select_db("...", $con);$result = mysql_query("SELECT *FROM `pictures` WHERE `aid` = 1 ORDER BY `pid` ASC");while($row = mysql_fetch_array($result)) { echo '<div class="photoThumb">'; echo '<a href="'; echo $row['filepath']; echo $row['filename']; echo '"><img src="'; echo $row['filepath']; echo $row['filename']; echo '" rel="lightbox[' .$row['aid']; echo ']" border="0" width="100px" /></a><br/>'; echo "</div>"; }mysql_close($con); Does anyone have any suggestions on how I fix this. My lightbox also does not seem to work if anyone also has any suggestions on that.Thanks for you time,Brian
  • Create New...