Jump to content

makaveli80

Members
  • Posts

    18
  • Joined

  • Last visited

    Never

Everything posted by makaveli80

  1. I've been trying to figure it out, but havnig no luck...can someone help me with the code please??? thanks!
  2. thanks for the reply, I'm not sure what you mean though. Do I basically duplicate those lines you posted function initializemarquee(){ cross_marquee=document.getElementById("vmarquee") cross_marquee.style.top=0 marqueeheight=document.getElementById("marqueecontainer").offsetHeight and change the variables? to like marquee2? and change the id of the second marquee box from vmarquee to vmarquee2??
  3. sorry about that, I was able to solve the problem...didn't realize a td tag was missing, when I added that it was all good anyways, my next problem is the marquee one which I have opened up a topic for. thanks
  4. Hello, I am trying to avoid using the <marquee></marquee> tags The given code from a website is Step 1: Insert the below code in the <head> section of your page: <style type="text/css"> #marqueecontainer{ position: relative; width: 200px; /*marquee width */ height: 200px; /*marquee height */ background-color: white; overflow: hidden; border: 3px solid orange; padding: 2px; padding-left: 4px; } </style> <script type="text/javascript"> /*********************************************** * Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit http://www.dynamicdrive.com/ for this script and 100s more. ***********************************************/ var delayb4scroll=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds) var marqueespeed=2 //Specify marquee scroll speed (larger is faster 1-10) var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)? ////NO NEED TO EDIT BELOW THIS LINE//////////// var copyspeed=marqueespeed var pausespeed=(pauseit==0)? copyspeed: 0 var actualheight='' function scrollmarquee(){ if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+) cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px" else cross_marquee.style.top=parseInt(marqueeheight)+8+"px" } function initializemarquee(){ cross_marquee=document.getElementById("vmarquee") cross_marquee.style.top=0 marqueeheight=document.getElementById("marqueecontainer").offsetHeight actualheight=cross_marquee.offsetHeight if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit cross_marquee.style.height=marqueeheight+"px" cross_marquee.style.overflow="scroll" return } setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll) } if (window.addEventListener) window.addEventListener("load", initializemarquee, false) else if (window.attachEvent) window.attachEvent("onload", initializemarquee) else if (document.getElementById) window.onload=initializemarquee </script> The CSS at the top controls the basic look of the marquee. Also refer to the variables inside script for additional config options. Step 2: Then add the below HTML to the <body> where you want the marquee to appear: <div id="marqueecontainer" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"> <div id="vmarquee" style="position: absolute; width: 98%;"> <!--YOUR SCROLL CONTENT HERE--> <h4>Your scroller contents</h4> <!--YOUR SCROLL CONTENT HERE--> </div> </div> I want to create two marquees, but if I edit one, the other is changed...how do I get two seperate marquee's to run???
  5. and are both messed up? I tried on another computer, both are messed up...any idea how to fix that part?
  6. Hello everyone, This is a problem that is continued from earlier one that I posted... http://www.keepsys.net/geocart/ that part of the page extends almost to the bottom in firefox, but in IE there is always a huge gap http://www.keepsys.net/geocart/table.JPG The page loads in php and doesn't work, but when I load the exact same code in html it seems to work...any idea what I can do to fix it? I tried seperating the table, tried the exact code of the table in the php and then the html, the html works but php doesn't Here is the code for the header <? require("db_log.php"); include(dirname(__FILE__).'/session.php'); session_start(); require("functions.php"); require("login_log.php"); $query = mysql_query("SELECT * FROM site_config WHERE id='1'"); while($row = mysql_fetch_array($query)) { foreach($row as $key => $value) { $config[$key] = $value; } } $total_new = mysql_query("SELECT * FROM catalog WHERE isphone='1' AND isused='0'"); $totalnew = mysql_num_rows($total_new); $total_acc = mysql_query("SELECT * FROM catalog WHERE isacc='1'"); $totalacc = mysql_num_rows($total_acc); $total_used = mysql_query("SELECT * FROM catalog WHERE isphone='1' AND isused='1'"); $totalused = mysql_num_rows($total_used); $user_id = GetUserID($username); $wa = IsUserAdministrator($user_id); if($logged_in) { if($wa == 1) { $auth_access = 1; } else { $auth_access = 0; } } ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="keywords" content="phon" /> <meta name="description" content="descp" /> <title>G</title> <LINK HREF="style.css" TYPE="text/css" REL="stylesheet" /> <link rel="shortcut icon" type="image/x-icon" /> </head> <body> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td background="images/til_1.jpg" style="background-repeat:repeat-x; background-position:top "> </td> <td width="766" align="left" valign="top"><table width="766" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="766" height="234"> <param name="movie" value="placeholder.swf" /> <param name="quality" value="high" /> <embed src="placeholder.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="766" height="234"></embed> </object></td> </tr> <tr> <td align="left" valign="top"><table width="766" border="0" cellspacing="0" cellpadding="0"> <tr align="left" valign="top"> <td width="249" height="100%"><table width="249" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="100%" align="left" valign="top"><table width="249" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr align="left" valign="top"> <td width="18"><table width="18" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="204" align="left" valign="top"><img src="images/left.jpg" width="18" height="204" /></td> </tr> <tr> <td height="100%" align="left" valign="top" style="border-right:1px solid #CBCBCB "> </td> </tr> </table></td> <td height="100%" style="border-right:1px solid #CBCBCB "><div style="padding-left:21px; padding-top:10px; padding-right:19px; padding-bottom:10px"></div> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p align="center">eqwe</p> <p> </p> <p align="center">qwewqeweq</p> <p> </p> </td> </tr> <tr align="left" valign="top"> <td> </td> <td height="100%" style="border-right:1px solid #CBCBCB "> </td> </tr> </table></td> </tr> <tr> <td height="34" align="left" valign="top"><img src="images/bottom_1.jpg" width="249" height="34" /></td> </tr> </table></td> <td width="517">
  7. I'm not sure what you mean...if you put right before head end close tag the code I posted with style tags around, it should work... alternatively, if you simply create a new css file, then link to it at the top of the pages so you don't need that code in every page
  8. no, put it in either a new css style sheet, or in your html pages right before </head> if you put it before closing of head tag, be sure to add style so it would be <style> a:link { color: #7d7d7d; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; text-decoration: none; } a:visited { color: #7d7d7d; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; text-decoration: none; } a:hover { color: #7d7d7d; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; text-decoration: underline; } a:active { color: #7d7d7d; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; text-decoration: none; } </style>
  9. I think you can add a css style for url's, just change these to your variables a:link { color: #7d7d7d; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; text-decoration: none; } a:visited { color: #7d7d7d; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; text-decoration: none; } a:hover { color: #7d7d7d; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; text-decoration: underline; } a:active { color: #7d7d7d; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; text-decoration: none; } #7d7d7d is silver, change to what you want, white would be #FFFFFF
  10. thanks lem! that was the answer I guess now that I know the part after the php is html, I can deal with the rest. thanks again
  11. or if anyone else has any idea's, I would try them out too
  12. Hey lemmin, thanks for the reply That almost works, I tried that as well. The problem when I do this is, everything gets pulled to the right hand side...including the header and index and footer. If I could figure out how to make everything centered then my problem would be solved. Right now the index is showing exactly where I want it, just the entire page seems to have shifted to the far right. any ideas how to center it? I've tried align left on all 3 pages but it doesn't seem to work?
  13. yah I already tried that, I put that in my original post as well...sorry its so long, wanted to explain everything...i hope it makes sense. any other ideas?
  14. The content that is loaded from index.php does not load on the page where I want it to. And I simply can't figure out how to make it go to the top, it's always at the bottom. The problem occurs since it's split into 3 sections, header, index (middle) and the footer. All those are seperate php files. If it was one page, I would be easily able to get it to go where I want, but in 3 files, I haven't been able to.
  15. the experts out there, I am in need of your assistance
  16. anybody with any ideas??? I'm really at a loss!
  17. Hi guys, I've been trying to figure this problem out for a long time and I have yet been unable to figure out any solutions, so any help would be most appreciated. There are 3 sections to the site, there is a template so the pages can be edited one one page, then the changes apply all over. Here is a jpg of what I was trying to do. The three files are head.php (header), index.php (main content), and tail.php (footer) This is head.php , I tried to remove the end body and html tags to see if it would come up, but no luck. <? require("db.php"); include(dirname(__FILE__).'/session.php'); session_start(); require("functions.php"); require("login.php"); $query = mysql_query("SELECT * FROM site_config WHERE id='1'"); while($row = mysql_fetch_array($query)) { foreach($row as $key => $value) { $config[$key] = $value; } } $total_new = mysql_query("SELECT * FROM sitepage WHERE ispage='1' AND isused='0'"); $totalnew = mysql_num_rows($total_new); $total_acc = mysql_query("SELECT * FROM sitepage WHERE isacc='1'"); $totalacc = mysql_num_rows($total_acc); $total_used = mysql_query("SELECT * FROM sitepage WHERE ispage='1' AND isused='1'"); $totalused = mysql_num_rows($total_used); $user_id = GetUserID($username); $wa = IsUserAdmin($user_id); if($logged_in) { if($wa == 1) { $auth_access = 1; } else { $auth_access = 0; } } ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="keywords" content="keywords" /> <meta name="description" content="descp" /> <title></title> <link href="css/basic.css" rel="stylesheet" type="text/css" /> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> <style type="text/css"> #dropmenudiv{ display:block; width:200px; position:absolute; top:0; left:0; border:1px solid black; border-bottom-width: 0; font:normal 12px Verdana; line-height:18px; z-index:100; color: #000000; margin-top:-22px; margin-left:200px; filter:alpha(opacity=75); -moz-opacity:.75; opacity:.75; } pre { width:500px; font:normal 12px Verdana; color: #000000; } #dropmenudiv a{ width: 100%; display: block; text-indent: 3px; border-bottom: 1px solid black; padding: 1px 0; text-decoration: none; font-weight: bold; color: #FFFFFF; } #dropmenudiv a:hover{ /*hover background color*/ background-color: blue; } body { background-color: #FFFFFF; } </style> </head> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td background="images/til_1.jpg" style="background-repeat:repeat-x; background-position:top "> </td> <td width="766" align="left" valign="top"><table width="766" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0','width','766','height','234','src','Flash/design-studio','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','Flash/design-studio' ); //end AC code </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="766" height="234"> <param name="movie" value="flash.swf" /> <param name="quality" value="high" /> <embed src="flash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="766" height="234"></embed> </object></noscript></td> </tr> <tr> <td align="left" valign="top"><table width="766" border="0" cellspacing="0" cellpadding="0"> <tr align="left" valign="top"> <td width="249" height="100%"><table width="249" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="100%" align="left" valign="top"><table width="249" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr align="left" valign="top"> <td width="18"><table width="18" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="204" align="left" valign="top"><img src="images/left.jpg" width="18" height="204" /></td> </tr> <tr> <td height="100%" align="left" valign="top" style="border-right:1px solid #CBCBCB "> </td> </tr> </table></td> <td height="100%" style="border-right:1px solid #CBCBCB "><p> </p> <p> </p> <p>Login</p> <p> </p> <p>Navigation links</p></td> </tr> </table></td> </tr> <tr> <td height="34" align="left" valign="top"><img src="images/bottom_1.jpg" width="249" height="34" /></td> </tr> </table></td> <td width="517"> </td> </tr> </table></td> </tr> <tr> <td height="5" align="left" valign="top"> </td> </tr> <tr> </tr> </table></td> <td background="images/image_2.jpg" style="background-position:top; background-repeat:repeat-x "> </td> </tr> <tr> <td> </td> <td width="766" align="left" valign="top"> </td> <td> </td> </tr> </table> </body> </html> This is basically the top part, and the left part. I can't put left part into index.php since the content changes and the left navigation dissapears...so I need it in head. This is the index.php file, it loads the main content, and it should be in center of the page. <? require("head.php"); $user_id = GetUserID($username); $wa = IsUserAdmin($user_id); if($logged_in) { if($wa == 1) { $auth_access = 1; } else { $auth_access = 0; } } if($auth_access == 1) { echo "<meta http-equiv=\"Refresh\" content=\"0;url=sitepage2.php\">"; exit; } ?> <? if(!$logged_in){ ?> </td> <table width="450" border="0" cellspacing="0" cellpadding="0"> <? if( empty($config['main_banner']) ){ ?> <tr> <td><div class="mainheading"> <font color="#9f3738"> What's new here?</font></div></td> </tr> <? }else{ ?> <tr> <td><img src="save/<? echo($config['main_banner']); ?>" /></td> </tr> <? } ?> <tr> <td><div align="left"> <div class="mainsub"> Welcome To Our Website!</div> </div></td> </tr> <tr> <td></td> </tr> </table> <br /> <? require("tail.php"); ?> And this is the tail.php (footer) it's not so important since I can figure this out if I can manage to somehow get index into the center BESIDE the navigation instead of under it. Again, any help would be most appreciated. PS. I don't know if variables are important, I just want the main content to show up in the center...
  18. what if you have a dynamic IP, using either dialup or dsl? If I unplug my router for a few min, it gives me a new ip address.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.