Jump to content

EagerWolf

Members
  • Posts

    132
  • Joined

  • Last visited

    Never

Everything posted by EagerWolf

  1. I've 2 databases... First database (with articles): 1: producer = 1 model = some_text ... 2: producer = 3 model = some_text ... Second database (producers) 1 = Toshiba 2 = HP 3 = Dell I want to use second database when outputting... Example (for first product): Producer: Toshiba ... So I want to write Toshiba instead of 1... Please help! Thanks
  2. I am trying to sort array alphabetically ... But I have a problem.. $array = array( '1' => 'a', '2' => 'c', '3' => 'b' ); When I sort this array I get this: [code] $array = array( '1' => 'a', '2' => 'b', '3' => 'c' ); But I want to get this: [code] $array = array( '1' => 'a', '3' => 'b', '2' => 'c' ); I want key words to be sorted as well ... Thanks for your help![/code][/code]
  3. Jup .. that was the problem .. solving mistakes in your own code can be problem Another question ... I didn't use null before... How can I use it? What is diffrence between null and not null ... I will have few options which won't be inserted by user ... Should I set this to null than??
  4. CREATE TABLE `personal` ( `id` INT( 30 ) NOT NULL AUTO_INCREMENT , `proizvajalec` VARCHAR( 30 ) NOT NULL , `model` VARCHAR( 30 ) NOT NULL , `cena` INT( 10 ) UNSIGNED NOT NULL , `letnik` INT( 5 ) UNSIGNED NOT NULL , `letnik1` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `dolzina` INT( 4 ) NOT NULL , `dolzina1` ENUM( '1', '2' ) NOT NULL DEFAULT '1', `lokacijadrzava` VARCHAR( 30 ) NOT NULL , `lokacijadrzava1` TINYINT( 2 ) UNSIGNED NOT NULL , `zastava` TINYINT( 2 ) UNSIGNED NOT NULL , `st_trupov` TINYINT( 2 ) UNSIGNED NOT NULL , `lastnik` TINYINT( 2 ) UNSIGNED NOT NULL , `ohranjenost` TINYINT( 2 ) UNSIGNED NOT NULL , `posdkoba` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `poskodba1` TINYINT( 2 ) UNSIGNED NOT NULL , `obnovljeno` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `obnovljeno1` TINYINT( 2 ) UNSIGNED NOT NULL , `sirina` INT( 3 ) UNSIGNED NOT NULL , `sirina1` ENUM( '1', '2' ) NOT NULL , `potovalhitrost` INT( 4 ) UNSIGNED NOT NULL , `potovalhitrost1` ENUM( '1', '2' ) NOT NULL , `maxhitrost` INT( 4 ) UNSIGNED NOT NULL , `maxhitrost1` ENUM( '1', '2' ) NOT NULL , `rezervargor` INT( 4 ) UNSIGNED NOT NULL , `rezervargor1` ENUM( '1', '2' ) NOT NULL , `poraba` INT( 4 ) UNSIGNED NOT NULL , `poraba1` ENUM( '1', '2' ) NOT NULL , `poraba2` INT( 4 ) UNSIGNED NOT NULL , `poraba21` ENUM( '1', '2' ) NOT NULL , `rezervarvode` INT( 4 ) UNSIGNED NOT NULL , `rezervarvode1` ENUM( '1', '2' ) NOT NULL , `mattrupa` TINYINT( 2 ) UNSIGNED NOT NULL , `oblikovalec` VARCHAR( 30 ) NOT NULL , `st_jamborjev` TINYINT( 2 ) UNSIGNED NOT NULL , `st_jadr` TINYINT( 2 ) UNSIGNED NOT NULL , `povrsina_gl` INT( 4 ) UNSIGNED NOT NULL , `povrsina_gl1` ENUM( '1', '2' ) NOT NULL , `skupna_pov_j` INT( 4 ) UNSIGNED NOT NULL , `skupna_pov_j1` ENUM( '1', '2' ) NOT NULL , `shranjevanje_jadra` TINYINT( 2 ) UNSIGNED NOT NULL , `shranjevanje_jadra1` VARCHAR( 25 ) NOT NULL , `spinaker` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `genaker` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `el_vinc_za_jadra` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `palub_oprema` VARCHAR( 25 ) NOT NULL , `bowthruster` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `brez_motorja` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `konzola_z_volanom` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `zlozljiv` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `suhateza` MEDIUMINT( 5 ) UNSIGNED NOT NULL , `suhateza1` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `max_stpotnikov` MEDIUMINT( 3 ) UNSIGNED NOT NULL , `max_obremenitev` MEDIUMINT( 5 ) UNSIGNED NOT NULL , `max_obremenitev1` ENUM( '1', '2' ) NOT NULL , `max_moc_motorja` INT( 5 ) UNSIGNED NOT NULL , `max_moc_motorja1` ENUM( '1', '2' ) NOT NULL , `kobilica` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `kobilica2` TINYINT( 2 ) UNSIGNED NOT NULL , `dno` TINYINT( 2 ) UNSIGNED NOT NULL , `st_vesel` TINYINT( 2 ) UNSIGNED NOT NULL , `premer_tube` TINYINT( 3 ) UNSIGNED NOT NULL , `premer_tube1` ENUM( '1', '2' ) NOT NULL , `registrdo` ENUM( '0', '1' ) NOT NULL , `registrdo1` TINYINT( 2 ) UNSIGNED NOT NULL , `garancija` MEDIUMINT( 3 ) UNSIGNED NOT NULL , `garancija1` TINYINT( 2 ) UNSIGNED NOT NULL , `stnadstropji` TINYINT( 2 ) UNSIGNED NOT NULL , `stlezisc` TINYINT( 2 ) UNSIGNED NOT NULL , `stkabin` TINYINT( 2 ) UNSIGNED NOT NULL , `kopalnica` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `kopalnica1` TINYINT( 2 ) UNSIGNED NOT NULL , `toplavoda` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `wc` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `wc1` TINYINT( 2 ) UNSIGNED NOT NULL , `stedilnik` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `hladilnik` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `mirkovalovna` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `klima` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `ogrevanje` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `savna` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `jacuzzi` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `bar` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `skiperska_kab` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `proizmot` VARCHAR( 30 ) NOT NULL , `modelmot` VARCHAR( 30 ) NOT NULL , `vrstamot` ENUM( '1', '2' ) NOT NULL , `takt_motorja` ENUM( '1', '2' ) NOT NULL , `vrstapogona` ENUM( '1', '2' ) NOT NULL , `gorivo` TINYINT( 2 ) UNSIGNED NOT NULL , `kapac_baterije` TINYINT( 2 ) UNSIGNED NOT NULL , `nac_vziga` ENUM( '1', '2' ) NOT NULL , `stmot` TINYINT( 2 ) UNSIGNED NOT NULL , `skupnamoc` INT( 4 ) UNSIGNED NOT NULL , `skupnamoc1` ENUM( '1', '2' ) UNSIGNED NOT NULL , `moc_motorja` INT( 4 ) UNSIGNED NOT NULL , `moc_motorja1` ENUM( '1', '2' ) NOT NULL , `sturdelov` INT( 5 ) UNSIGNED NOT NULL , `servis` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `servis1` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `okvaramotorja` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `okvaramotorja1` TINYINT( 2 ) UNSIGNED NOT NULL , `dodatnmotor` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `dodatnmotor1` VARCHAR( 30 ) NOT NULL , `moc_dodatn` INT( 3 ) UNSIGNED NOT NULL , `moc_dodatn1` ENUM( '1', '2' ) NOT NULL , `garancijamot` TINYINT( 3 ) UNSIGNED NOT NULL , `garancijamot1` TINYINT( 2 ) UNSIGNED NOT NULL , `prodprikolico` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `prodcolnom` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `prodcolnom1` VARCHAR( 30 ) NOT NULL , `dolzinadodat` MEDIUMINT( 3 ) UNSIGNED NOT NULL , `dolzinadodat1` ENUM( '1', '2' ) NOT NULL , `prodskijet` ENUM( '0', '1' ) NOT NULL , `prodskijet1` VARCHAR( 30 ) NOT NULL , `kompas` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `brzinomer` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `brzinomer1` VARCHAR( 30 ) NOT NULL , `globinomer` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `globinomer1` VARCHAR( 30 ) NOT NULL , `mer_vetra` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `mer_vetra1` VARCHAR( 30 ) NOT NULL , `gps` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `gps1` VARCHAR( 30 ) NOT NULL , `chartplotter` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `chartplotter1` VARCHAR( 30 ) NOT NULL , `avtopilot` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `avtopilot1` VARCHAR( 30 ) NOT NULL , `radar` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `radar1` VARCHAR( 30 ) NOT NULL , `iskalecrib` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `iskalecrib1` VARCHAR( 30 ) NOT NULL , `radio` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `radio1` ENUM( '0', '1', '2' ) NOT NULL DEFAULT '0', `hifi` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `tv` TINYINT( 2 ) UNSIGNED NOT NULL , `tv1` ENUM( '0', '1', '2', '3' ) NOT NULL DEFAULT '0', `vhfpostaja` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `vhfpostaja1` VARCHAR( 30 ) NOT NULL , `generator` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `generator1` MEDIUMINT( 4 ) UNSIGNED NOT NULL , `soncnecelice` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `elektvitlo` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `hidrvolan` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `pozluci` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `zarometi` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `sprayhood` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `tenda` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `bimini` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `canvas` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `pokrivalo` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `lzcerada` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `elpasarela` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `tikpaluba` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `tuskrma` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `mizakrma` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `brisvetrobran` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `helploscad` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `oblsedezi` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `stopnice` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `sidro` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `torba` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `vesla` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `tlacilka` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `eltlacilka` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `setpopravilo` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `manometer` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `odlagprostorp` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `odlagprostor` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `resset` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `kaluzna` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `shore_power` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `charterizv` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `stribpalic` TINYINT( 2 ) UNSIGNED NOT NULL , `ribmreza` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `dol_rib_mreza` MEDIUMINT( 4 ) UNSIGNED NOT NULL , `dol_rib_mreza1` ENUM( '1', '2' ) NOT NULL , `vrsa` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `velikost_vrsa` MEDIUMINT( 4 ) UNSIGNED NOT NULL , `maxulov` INT( 4 ) UNSIGNED NOT NULL , `maxulov1` ENUM( '1', '2' ) NOT NULL , `elvinczamrezo` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `stdrzalpalic` TINYINT( 2 ) UNSIGNED NOT NULL , `st_sedezev` TINYINT( 3 ) UNSIGNED NOT NULL , `moz_sed_sto` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `prost_motorja` INT( 4 ) UNSIGNED NOT NULL , `st_valj_motorja` TINYINT( 2 ) UNSIGNED NOT NULL , `vlecna_vrv` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `vodne_smuci` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `mono_ski` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `wake_board` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `trick_board` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `knee_board` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `tuba` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `banana` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `resilni_jopic` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `resilni_jopic1` TINYINT( 2 ) UNSIGNED NOT NULL , `celada` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `celada1` TINYINT( 2 ) UNSIGNED NOT NULL , `neopren` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `neopren1` TINYINT( 2 ) UNSIGNED NOT NULL , `pod_plosca` ENUM( '0', '1' ) NOT NULL DEFAULT '0', `slika1` TEXT NOT NULL , `slika2` TEXT NOT NULL , `slika3` TEXT NOT NULL , `slika4` TEXT NOT NULL , `slika5` TEXT NOT NULL , `slika6` TEXT NOT NULL , `email` TEXT NOT NULL , `fname` VARCHAR( 40 ) NOT NULL , `lname` VARCHAR( 40 ) NOT NULL , `telefon` INT( 20 ) NOT NULL , `gsm` INT( 20 ) NOT NULL , `skupina` TINYINT( 2 ) UNSIGNED NOT NULL , `podskupina` TINYINT( 2 ) UNSIGNED NOT NULL , `drzava_tel` TINYINT( 2 ) UNSIGNED NOT NULL , `aktivacija` ENUM( '0', '1' ) NOT NULL DEFAULT '0', UNIQUE ( `id` ) ) TYPE = MYISAM
  5. I've tried to create new table with phpMyAdmin ... When I was submiting new table i got an error: #1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'UNSIGNED NOT NULL, `moc_motorja` INT UNSIGNED NOT NULL, `moc_mo I've been looking for solution for a long time... but was unsuccessful.. Please help! Thanks!
  6. Here is code: imggen.php //Generates img <? //start a session session_start(); //this function is called recursivelly function random_string($len=5, $str='') { for($i=1; $i<=$len; $i++) { //generates a random number that will be the ASCII code of the character. //We only want numbers (ascii code from 48 to 57) and caps letters. $ord=rand(48, 90); if((($ord >= 48) && ($ord <= 57)) || (($ord >= 65) && ($ord<= 90))) $str.=chr($ord); //If the number is not good we generate another one else $str.=random_string(1); } return $str; } //create the random string using the upper function //(if you want more than 5 characters just modify the parameter) $rand_str=random_string(5); //We memorize the md5 sum of the string into a session variable $_SESSION['image_value'] = md5($rand_str); //Get each letter in one valiable, we will format all letters different $letter1=substr($rand_str,0,1); $letter2=substr($rand_str,1,1); $letter3=substr($rand_str,2,1); $letter4=substr($rand_str,3,1); $letter5=substr($rand_str,4,1); //Creates an image from a png file. If you want to use gif or jpg images, //just use the coresponding functions: imagecreatefromjpeg and imagecreatefromgif. $image=imagecreatefrompng("image.png"); //Get a random angle for each letter to be rotated with. $maxkot = 15; $minkot = -15; $angle1 = rand($minkot, $maxkot); $angle2 = rand($minkot, $maxkot); $angle3 = rand($minkot, $maxkot); $angle4 = rand($minkot, $maxkot); $angle5 = rand($minkot, $maxkot); //Get a random font. (In this examples, the fonts are located in "fonts" directory and named from 1.ttf to 10.ttf) $font1 = "fonts/".rand(1, 5).".ttf"; $font2 = "fonts/".rand(1, 5).".ttf"; $font3 = "fonts/".rand(1, 5).".ttf"; $font4 = "fonts/".rand(1, 5).".ttf"; $font5 = "fonts/".rand(1, 5).".ttf"; //Define a table with colors (the values are the RGB components for each color). $colors[0]=array(7,7,130); $colors[1]=array(1,101,4); $colors[2]=array(101,32,1); $colors[3]=array(89,0,0); $colors[4]=array(61,0,89); $colors[5]=array(0,84,89); //Get a random color for each letter. $color1=rand(0, 5); $color2=rand(0, 5); $color3=rand(0, 5); $color4=rand(0, 5); $color5=rand(0, 5); //Allocate colors for letters. $textColor1 = imagecolorallocate ($image, $colors[$color1][0],$colors[$color1][1], $colors[$color1][2]); $textColor2 = imagecolorallocate ($image, $colors[$color2][0],$colors[$color2][1], $colors[$color2][2]); $textColor3 = imagecolorallocate ($image, $colors[$color3][0],$colors[$color3][1], $colors[$color3][2]); $textColor4 = imagecolorallocate ($image, $colors[$color4][0],$colors[$color4][1], $colors[$color4][2]); $textColor4 = imagecolorallocate ($image, $colors[$color5][0],$colors[$color5][1], $colors[$color5][2]); //Write text to the image using TrueType fonts. $size = 40; imagettftext($image, $size, $angle1, 15, $size+rand(15,50), $textColor1, $font1, $letter1); imagettftext($image, $size, $angle2, 50, $size+rand(15,50), $textColor2, $font2, $letter2); imagettftext($image, $size, $angle3, 85, $size+rand(15,50), $textColor3, $font3, $letter3); imagettftext($image, $size, $angle4, 120, $size+rand(15,50), $textColor4, $font4, $letter4); imagettftext($image, $size, $angle5, 155, $size+rand(15,50), $textColor5, $font5, $letter5); header('Content-type: image/jpeg'); //Output image to browser imagejpeg($image); //Destroys the image imagedestroy($image); ?> show.php <? session_start(); ?> <img src="imggen.php"> <form method="POST" action="valid.php"> <input type="text" name="numcheck"> <input type="submit" name="Submit" value="Sprejmi"> <input type="hidden" name="hidnum" value="<? print $_SESSION['image_value']; ?>"> </form> <?php print_r($_SESSION); ?> I have experienced strange problem. When I open file show.php image is being showed, but nothing is being stored in $_SESSION on reload in $_SESSION is stored key from previous img... Any idea? 10x for your help!
  7. I've used this method already, but in my case I got array which has about 1000 entries ... and I should check if any key is duplicated.. Thanks for idea anyway...
  8. I have got very long file ... and I know that duplicated key rewrites earlier... That is what I want to prevent with script I am trying to do ..
  9. I have an array. I need to check if key (key => value) is being duplicated... I've already checked all values not to be duplicated and found out they are.. I am trying to make script which would print me which key is being duplicated. Thanks for help!
  10. Your img genereator: imggenerator.php In file where you need image to be shown enter this code: <img src="path_to_generator.php"> Pure html ... just path to img is to generator...
  11. Although I don't imagine what exactly you want to do I think it can be easily done ... Text should be hidden and in div (same div as picture) than on click text should be set to proper size and shown and layer should be set to auto width and height ... You can describe a little bit more (is there any example, picture) and I will help tomorrow (will be away now - sleep time ) if you are not successful today. Best regards
  12. I prefer to store path in database ... Upload file in your upload_dir/username/whatever.jpg ... And store path to image in database.. I've read about storing image in database (it is said it is faster) ... but I think database isn't make to store images (I guess).. In fact we've tested it and it wasn't faster storing path in database... To store path do smth like this: $uploaddir = "directory"; $username = "GET_USERNAME_FROM_UPLOADE"; $name = "CREATE_RANDOM_NAME.jpg"; $path_to_img = $uploaddir."/".$username."/".$name; And store $path_to_img in your database... Hope this will be your solution ...
  13. Ok ... picture is not shown... Use this to get the image: <img src="path_to_generator.php"> First make blank file (test.php or smth) and put inside to show this picture.. If picture isn't shown ... Than there's smth wrong with the code. Tell us results... Best regards.
  14. JS should be add before <?php ... in fact it should be in head of documet... If you printed whole HTML (I do not prefer this) you should print it as well...
  15. Your problem can be solved with DIV layers... Instead of href use onClick or onMouseOver (up to you ... what you like most) and onClick call JS ... You should define div layer with height '0' and positioning to absolute and overflow should be disabled. In JS you should resize this layer to whatever you want.. With a little knowledge about JS you should understand code below: <script type="text/javascript"> var o; function big(n, obj) { setTimeout('bigcall("'+n+'")', 0); } function bigcall(n) { var obj = document.getElementById('im'); o.innerHTML = '<img src="'+n+'" />'; o.style.left = (obj.offsetWidth - 10) + "px"; o.style.top = (obj.offsetHeight - 10) + "px"; o.style.visibility = 'visible'; } function big_hide() { setTimeout('big_hide1()', 1000); } function big_hide1(num) { o.style.visibility = 'hidden'; } function init() { o = document.getElementById('ro'); } </script> This is made for pictures: "bigcall('path_to_picture')" Use this in onClick to call function bigcall... In body must be defined: onload="init();" This will make o (look in script).. And div layer must be defined with ID (in this case 'ro') <div id="ro" style="visibility:hidden; position:absolute;"></div> With this script you should solve your problem with a few modifications. In function bigCall there is timeout function ... This is used if you want a little delay when mouse goes over. If you have any problems feel free to ask... This code is just a quick example.. I hope it will help you... Best regards, EW
  16. Well .. I guess you all didn't read everything It is said it is not working example
  17. I suggest you try to open file without JS ... Or try to disable JS in your browser... This will give you chance to locate the source of problem. And when you are modifying your script and refresh in browser always remember to delete cache. It would be much easier to bother with your problem if you give URL address... You can PM me... Best regards..
  18. Depends what is your wish ... Do you want thumbnail to be created from somewhere in the middle of movie or from the beginning?
  19. Thanks man ... This was what I've been looking for!
  20. So I have got Site which is for company from Germany for example ... but is hosted in USA... Then there is no chance my site is shown if it is being searched with google and filter is applied to search for sites in German language?
  21. I think you made great job... Depends what is the focus point of your banner .. personally i think that text Random is seen after really look in the banner.. If it is a logo it is cool... If it is just a banner I think text should get more persons' attention.
  22. I've made site ... which is written in multi languages ... As far as I am informed, google supports links written as index.php?lang=eng.. OK I've added in body lang=... So where body starts it is: <body lang="sl-SI"> The problem is ... My site is being found when i select to search entire web.. When I choose to search trough sites in Slovenian language and looking for the same string (which is and was in slovenian language...) my site is not found... Anyone know what is the problem? Thanks!
  23. create 2 files: First file: Forms for data to be inserted... <form method="post" action="mail.php"> ... </form> This will call function mail.php when form is submitted... Second file (mail.php): $to = ' me@mydomain.com'; $subject = 'Web Enquiry'; $message = 'From: ' . $_REQUEST['Name'] . "\n\n" . $_REQUEST['Comments']; $email = $_REQUEST['Email']; $headers = 'From: ' . $email . "\r\n" . 'Reply-To: ' . $email . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail ($to, $subject, $message, $headers); header("Location: index.htm"); $example_from_form = $_post['name']; Example_from_form will check what is inserted in form field named 'name'... That is the way you can use your file ... I hope it help if not ... ask
  24. Thanks for your help! I get it
  25. I would like DIV layer to be resized until zero ... I wrote a script which opens div layer on mouseover image and shows bigger image and hide it on mouse out... I want to add animation (with setinterval) to resize div layer until set to proper width and height... It would give me a nice effect.. Any ideas how should I do this?
×
×
  • 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.