Jump to content

cip6791

Members
  • Posts

    44
  • Joined

  • Last visited

    Never

Everything posted by cip6791

  1. I don't want overflow visible on some of them. That's my only problem. And the display:none; is set so the other divs will not show up until the link is clicked. This is the link. http://pixeltennis.com/produse_html/sub_produse/roc_demachiant/roc_lapte_demachiant_piele_normala.html The "Produsul" and the "Sfatul RoC" are the two links that i'm working with. "Produsul" doesn't have enough text to make the scroll bar scroll down. But it still shows up. I just want to hide it.
  2. I used javascript to display different divs in one div. The problem is that I don't need overflow:scroll; to be activated all the time. Code below. Now ... since the overflow:scroll is set in css for test_two, I don't know how to deactivate the scroll for certain divs which have less content and don't need to scroll but still get the blank scroll bar on the left side. Hope anybody can give me a hand with this one. <div id="test_two" style="background-image:url(../../../img/clenser_background.gif); repeat: repeat-y;"> <div id="navigation"> <ul> <li><a href="#" onclick="pageSwitch(1); return false;">Link1</a></li>| <li><a href="#" onclick="pageSwitch(2); return false;">Link2</a></li>| <li><a href="#" onclick="pageSwitch(3); return false;">Link3</a></li>| <li><a href="#" onclick="pageSwitch(4); return false;">Link4</a></li> </ul> </div> <div id="page1" style="display:block;"></div> <div id="page2" style="display:none;"></div> <div id="page3" style="display:none;"></div> <div id="page4" style="display:none;"></div> CSS code for test_two #test_two { position:absolute; top:0; left:227px; width:500px; height:350px; overflow:scroll; overflow-x:hidden; }
  3. nice ... thank you. I will try it out.
  4. so i would have to make a new field in my database? i know how to make the field. but what attributes do i give it?
  5. Nice ... it worked. Now how do I set up the database to have an image for each category? Can I set up the image path by hand in the database?
  6. I know very very little php. But I have nobody that can help me with this, so I hope somebody here will. I need to create something like this http://www.ghanaweb.com/GhanaHomePage/directory/alphabet.php?L=C If a user clicks on letter A he/she gets all the categories that start with the letter A and so on. All I got so far is this: $result = mysql_query("SELECT * FROM xzclf_cats WHERE catname LIKE 'A%' ORDER BY catname ASC"); while($row = mysql_fetch_assoc($result)){ echo $row['catname']; echo "<br />"; } I saw that I have to start with something like this: $letters = range('A', 'Z'); I really need help with this one. It needs to go here : http://www.iheartbrooklyn.com And another problem that I have is that the categories don't have fields in the database with images. I would also like to add that. That way when I display the name of the category, it will display the image as well. I added the images through a code that I got from the script's forum. But I forgot which little code it was. Too much shit going on. So please help me out on this one. Thanks
  7. thanks for your help. i ll try them out and let u know
  8. $result = mysql_query("SELECT * FROM xzclf_cats WHERE catname LIKE 'A%'"); $row = mysql_fetch_array($result) or die(mysql_error()); while($row = mysql_fetch_array($result)){ echo $row['catname']; echo "<br />"; } echo "Hello!"; ?> I am using the code above to get the catnames that start with the letter A. And it is not displaying anything. the Hello! echo is displaying. Can anybody give me a hand? Thank you.
  9. works a lot better ... thanks
  10. http://it.roc.com/xhtmlbgdisplay.jhtml?itemname=retinoxplus_soin_jour&context=3&smi=1 the original page works fine. i just don't know javascript or php to create such an advanced site.
  11. hmmm .. how would i do it with the else option?
  12. cool ... thanks. it works ... but there is one thing that isn't quite right. when the page loads, the first div shows up for one second then the other div loads. can this be solved? maybe it s just on my end ... check it out http://pixeltennis.com/produse_cosmetice_roc.html# <--- page with the three divs http://pixeltennis.com/produse_html/sub_produse/roc_anti_cellulite.html <--- page with the links. thanks for your help
  13. Hello I need a little help with something. The following links display 3 different divs on one page <li id='textLinia' onclick="switchOptions('divLinia');" onmouseover="this.style.cursor = 'pointer';"><a href="#">Gama</a></li> <li id='textPiele' onclick="switchOptions('divPiele');" onmouseover="this.style.cursor = 'pointer';"><a href="#">Tip de piele</a></li> <li id='textTrat' onclick="switchOptions('divTrat');" onmouseover="this.style.cursor = 'pointer';"><a href="#">Tip de tratament</a></li> I would like to set links from other pages to this page, but I want the links to link to the page with certain divs showing. How can this be done? Thanks
  14. Hi, I am trying to make a div change when an image that is in the same div is clicked. I m not too familiar with javascript, so I hope somebody can help me. This is the page : http://pixeltennis.com/produse_html/roc_hydra_summer.html I already used javascript in the submenu that changes the big blocks into three categories. I also want to change the gray(right) div when one of the little gifs on the bottom is pressed. That way it will show a little description of the product. Thanks.
  15. Hi all I am trying to build a website and i'm having problems with a margin-top. Below is the code. I m new at this so bear with me pls. I only want the sub_menu to appear on certain pages. I'm sure javascript would help me but i'll try that later. that s why it s commented out on this page. my problem is here : #content{ position:relative; height:380px; margin-top:35px; } by moving the content down 35px, i can have the background from sub_menu all the time. and it looks great. in FF, Safari, Konqueror it looks fine. When I view it in IE it's too low. Can anybody help me out with this one? And and other pointers would be appreciated. Thank you. body { background:white; } #container { width:880px; margin:0 auto; } .header{ height:98px; } #menu { width:100%; font-size:12px; font-family:Arial, Helvetica, sans-serif; } #menu ul { margin:0; padding:0; float:left; width:100%; background-color:#003975; border-bottom:4px solid #b39765; } #menu ul li { display:inline; } #menu ul li a { float:left; height:22px; color:white; border-right:1px solid #FFFFFF; text-decoration:none; padding-left:10px; padding-top:7px; padding-right:10px; } #menu ul li a:active { background-color:#000000; } #menu ul li a:hover { background-color:#000000; } #sub_menu{ font-family:Arial, Helvetica, sans-serif; font-size:12px; background-image:url(img/roc_sub_menu.gif); float:left; height:25px; width:100%; } #sub_menu ul{ margin-top:3px; margin-left:20px; padding:0; float:left; width:50%; } #sub_menu ul li{ display:inline; } #sub_menu ul li a{ float:left; border-bottom:2px solid #b39765; background-color:#003975; color:#FFFFFF; border-right:1px solid #FFFFFF; padding-left:2px; padding-right:2px; text-decoration:none; } #content{ position:relative; height:380px; margin-top:35px; } .main_left{ position:absolute; margin-top:25px; background-image:url(img/roc_backround_main_left.gif); background-repeat:no-repeat; width:147px; height:360px; margin-left:0; float:left; } .main_right{ position:absolute; margin-top:25px; text-align:right; float:left; margin-left:150px; width:725px; height:360px; } .footer { height:25px; font-size:12px; font-family:Arial, Helvetica, sans-serif; background-color:#003975; border-top:3px solid #b39765; color:#FFFFFF; margin-top:5px; padding-left:25px; padding-top:10px; } --> </style> <div id="container"> <div class="header"><img src="img/roc_header.gif" alt="cosmetice roc" width="880" height="98" border="0" usemap="#Map" /> <map name="Map" id="Map"> <area shape="rect" coords="25,5,149,91" href="index.html" /> </map></div> <div id="menu"> <ul> <li><a href="marca_cosmetice_roc.html">MARCA</a></li> <li><a href="#">NOUTATI</a></li> <li><a href="produse_cosmetice_roc.html">PRODUSE</a></li> <li><a href="tehnologie_cosmetice_roc.html">TEHNOLOGIE</a></li> <li><a href="http://www.smoinge.com">www.promisiuniindeplinite.ro</a></li> </ul> </div> <div id="sub_menu"> <ul> <!-- <li><a href="http://www.smoinge.com">www.smoinge.com</a></li> <li><a href="http://www.smoinge.com">www.smoinge.com</a></li> <li><a href="http://www.smoinge.com">www.smoinge.com</a></li> --> </ul> </div> <div id="content"> <div class="main_left"></div> <div class="main_right"> <iframe frameborder="0" width="670" height="355" scrolling="no" src="test.html"></iframe> </div> </div> <div class="footer">PROMISIUNI INDEPLINITE</div> </div>
  16. Hello I m new and don't know what i m doing ... so please help me out. Let's say I wanted the first link to look like the second one when somebody embeds a video from youtube. How can I use php to take out the $color1 and $color2 ? Thank you.
  17. <?php // //## You can find the configuration after the resizeimage function... ## // function resizeimage($imgurl,$maxw,$maxh,$orx,$ory,$itype,$succes){ $tmpimg = @imagecreatetruecolor($maxw,$maxh); if ($itype==1) { if (function_exists("imagegif")) { $initial = imagecreatefromgif($imgurl); if (imagecopyresized($tmpimg,$initial,0,0,0,0,$maxw,$maxh,$orx,$ory)==1) { imagegif($tmpimg,$imgurl,100); imagedestroy($tmpimg); imagedestroy($initial); @header("Location: ".$succes); exit; } else { unlink($imgurl); }} else { unlink($imgurl); echo('<B>EROARE</B>: Nu exista functia <I>imagegif()</I>!'); exit; }; } else { $initial = imagecreatefromjpeg($imgurl); if (imagecopyresized($tmpimg,$initial,0,0,0,0,$maxw,$maxh,$orx,$ory)==1) { imagejpeg($tmpimg,$imgurl,100); imagedestroy($tmpimg); imagedestroy($initial); @header("Location: ".$succes); exit; } else { unlink($imgurl); } } } // ## CONFIGURATION STARTS HERE: ## $directorfisieregif='gifs/'; // ## .gif file directory here ## $directorfisierejpg='jpgs/'; // ## .jpg file directory here ## $resize=1; // ## 1=true,0=false. If true then file resizing will be enabled. ## $maxx=1024; //## max width of a file ## $maxy=768; // ##max height of a file ## $pagupload='html/uploadform.html'; //## this is the redirection the your uploadform ## $pagdupapost='index.php'; //## this is the redirection after a succesfully upload of a file ## $pagrongrez='html/rongrez.html'; //## redirection in case of rong rezolution(only if resize disabled) ## $pageexists='html/exists.html'; //## redirection if file allready exists on server ## $pageview='index.php'; // ## this is the script for thumbnails creation ## // ## CONFIGURATION ENDS HERE ## $actiune=trim($_GET['do']); if ($actiune=="") {@header("Location: http://www.sportnonstop.net");} else if ($actiune=="upload"){ if ($_FILES['userfile']['type'] == 'image/gif'){ if (file_exists($directorfisieregif.$_FILES['userfile']['name'])) {@header("Location: ".$pageexists); exit;} @move_uploaded_file($_FILES['userfile']['tmp_name'],$directorfisieregif.$_FILES['userfile']['name']); $result=$directorfisieregif.$_FILES['userfile']['name']; $imgtype=1; } else if ($_FILES['userfile']['type'] == 'image/pjpeg'){ if (file_exists($directorfisierejpg.$_FILES['userfile']['name'])) {@header("Location: ".$pageexists); exit;} @move_uploaded_file($_FILES['userfile']['tmp_name'],$directorfisierejpg.$_FILES['userfile']['name']); $result=$directorfisierejpg.$_FILES['userfile']['name']; $imgtype=2; } else {exit;}; list($width, $height, $type, $attr)= getimagesize($result); if ($width<$maxx){@header("Location: ".$pagdupapost); exit; } else if ($width>$maxx) { if ($resize==1) { resizeimage($result,$maxx,$maxy,$width,$height,$imgtype,$pagdupapost);} else { @header("Location: ".$pagrongrez); unlink($result); exit; } } else { if ($height<$maxy){@header("Location: ".$pagdupapost); exit; } else if ($height>$maxy) { if ($resize==1) { resizeimage($result,$maxx,$maxy,$width,$height,$imgtype,$pagdupapost);} else { @header("Location: ".$pagrongrez); unlink($result); exit; } }} } else if ($actiune=="uploadform") {@header("Location: ".$pagupload); } else if ($actiune=="viewform") {@header("Location: ".$pageview);}; ?>
  18. Hello i want to upload pics here -->http://sportnonstop.net/europe/spain/images/football/barcelona/index.php If i upload with internet explorer , everything is ok ... but when i try uploading with firefox, the pics won t upload. Anybody have any idea why ? thanks
×
×
  • 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.