Jump to content
php.lv forumi

skrach

Reģistrētie lietotāji
  • Posts

    112
  • Joined

  • Last visited

About skrach

  • Birthday 04/24/1988

Profile Information

  • Location
    Latvija

skrach's Achievements

Newbie

Newbie (1/14)

  1. Nē nu tā ir, bet ja scripts veidots ar smarty, tad es arī turpinu viņu tālāk veidot ar smarty. :)
  2. Jo izmantoju scriptu kurā vēlos ielikt normālu video player.. :)
  3. Sveiki! Izmantoju smarty , ir tāda problēma ka nerāda video player. Kad uzlieku flashvars.autoPlay = "true"; , tad dziesma skan, bet neko nerāda. Varbūt kāds var palīdzēt. <div id="videoPlayer"> </div> {literal} <script type="text/javascript"> var flashvars = {}; flashvars.mediaURL = "http://www.youtube.com/watch?v={/literal}{$youtube_id}{literal}"; flashvars.teaserURL = "http://img.youtube.com/vi/{/literal}{$youtube_id}{literal}/0.jpg"; flashvars.allowSmoothing = "true"; flashvars.autoPlay = "false"; flashvars.buffer = "6"; flashvars.showTimecode = "true"; flashvars.loop = "false"; flashvars.controlColor = "0x0191d0"; flashvars.controlBackColor = "0x000000"; flashvars.scaleIfFullScreen = "true"; flashvars.showScalingButton = "true"; flashvars.defaultVolume = "100"; flashvars.crop = "false"; flashvars.onClick = "togglePlay"; var params = {}; params.menu = "false"; params.allowFullScreen = "true"; params.allowScriptAccess = "always" var attributes = {}; attributes.id = "videoplayer"; attributes.bgcolor = "#000000" function embedSWF(){ swfobject.embedSWF("swf/videoplayer.swf", "videoPlayer", "650", "380", "9", "swf/expressinstall.swf", flashvars, params, attributes); } embedSWF(); </script> {/literal}
  4. Samainīju, bet tas tā pat nepalīdz.
  5. Sveiki! Man radās viena problēma. Nekādigi nesanāk uzlikt class="current". Vienmēr taisīju un viss sanāca, bet tagad tam menu izmantoju javascipt un nevaru likt visu menu iekš PHP. Iekš <li> ir id="selected pirmajai lapai, tas ir priekš Javascript. Te ir HTML kods kurš atrodas header.php: <ul id="nav"> <li id="selected"><a href="index.php?page=home" class="<?php (($page == 'home') ? 'current' : '')?>">Sākums</a></li> <li><a href="index.php?page=services">Pakalpojumi</a></li> <li><a href="/" >Noderīgi padomi</a></li> <li><a href="index.php?page=gallery" >Galerija</a></li> <li><a href="/" >Cenas</a></li> <li><a href="index.php?page=contact" >Kontakti</a></li> </ul> Kods kurš atrodas iekš index.php: <?php require_once('header.php'); $page = (isset($_GET['page'])) ? $_GET['page'] : ''; switch($page) { case 'home': include "home.php"; break; case 'services': include "services.php"; break; case 'gallery': include "gallery.php"; break; case 'contact': include "contact.php"; break; default: include "home.php"; break; } require_once('footer.php'); ?> CSS kods: #nav { position: relative; background: #292929; top: 50px; left: 80px; } #nav li { float: left; list-style: none; border-right: 1px solid #111; border-left: 1px solid #111; } #nav li a { color: #e3e3e3; position: relative; z-index: 2; float: left; font-size: 12px; font-family: helvetica, arial, sans-serif; text-decoration: none; padding: 10px 15px; } #nav li a.current{ color: #7e292e; } Te ir tas Javascipts kods: (function($) { $.fn.spasticNav = function(options) { options = $.extend({ overlap : 10, speed : 500, reset : 1500, color : '#61b10a', easing : 'easeOutExpo' }, options); return this.each(function() { var nav = $(this), currentPageItem = $('#selected', nav), blob, reset; $('<li id="blob"></li>').css({ width : currentPageItem.outerWidth(), height : currentPageItem.outerHeight() + options.overlap, left : currentPageItem.position().left, top : currentPageItem.position().top - options.overlap / 2, backgroundColor : options.color }).appendTo(this); blob = $('#blob', nav); $('li:not(#blob)', nav).hover(function() { // mouse over clearTimeout(reset); blob.animate( { left : $(this).position().left, width : $(this).width() }, { duration : options.speed, easing : options.easing, queue : false } ); }, function() { // mouse out reset = setTimeout(function() { blob.animate({ width : currentPageItem.outerWidth(), left : currentPageItem.position().left }, options.speed) }, options.reset); }); }); // end each }; })(jQuery);
  6. Sveiki! Ir tāda lieta.. man SQL serveris atrodas uz PC1, bet pati lapa uz PC2 un ir divas dažādas IP .. Kā es varu dod pieeju PC2 lasīt datus no PC1 ?? Ceru ka sapratāt.. vnk nezinu ka lai savādāk apstāsta.. :)
  7. aaaa jāā .. pareizi.. :D :D Liels liels paldies ka apgaismoji mani.. ;) :D tikai nedaudz savādak. if($page == 'production') { $product = (isset($_GET['product'])) ? $_GET['product'] : ''; if($product == 'paper'){ include "paper.php"; } }
  8. aha, bet kā tad es norādīšu tieši kuru php failu man vajag .. ?
  9. nu man pašlaik ir poga "Produkcija" index.php?page=production ieejot tajā sadaļā, tur kreisajā menu ir vēl pogas kuras man vajadzētu apmeram tā: index.php?page=production$paper index.php?page=production&box Nemāku izveidot lai pēc index.php?page=production būtu &paper , kad piespiežu citu linku .
  10. Sveiki! Man rādās vajadzība izveidot šādu: index.php?page=production&paper pašlaika man ir . $page = (isset($_GET['page'])) ? $_GET['page'] : ''; echo '<ul class="menu">'; echo "<li><a href=\"index.php?page=home\" class=\"" . (($page == "home") ? "current" : "") . "\">". LANG_MENU_HOME ."</a></li>"; echo "<li><a href=\"index.php?page=production\" class=\"" . (($page == "production") ? "current" : "") . "\">". LANG_MENU_PRODUCTION ."</a></li>"; echo '</ul>'; if($page == 'home'){ include "index.php"; } if($page == 'production'){ include "production.php"; } Kāds varētu palīdzēt ?
  11. Sveicināti. Man radās problēmas ar zenphoto scriptu. No sākuma rādija ka nav gettext(), setlocale(), mbstring un nemaina File/Folder Permissions . Tiku es galā ar gettext() un mbstring , bet nekādigi nevaru sataisīt lai strādātu setlocale(). Un man vaig uzlikt daudziem folderiem 0755 atļauju (permissions). ------------------------ PHP setlocale() failed : Warning! Locale functionality is not implemented on your platform or the specified locale does not exist. Language translation may not work. See the troubleshooting guide on zenphoto.org for details. ------------------------ Ja vaig sīkāku info, rakstat. Paldies jau iepriekš.
  12. Izskatās kaut kā pārāk labi lai tā būtu taisnība, bez nekādām afērām! Kā tad īsti ir? Viņiem var uzticēties? Vienkārsī, uzliekot uz viņu servera savu web lapu, vai tas būs droši ka viņa nebūs kaut kur tālāk izmantota? Ko sakat ?
  13. Paldies vairs nevaig tiku gala.. :)
  14. nu to tad es sapratu.. bet kads bus tas links ko likt iekshaa.. vnk nemaku linku uztaisit no ta select koda
×
×
  • Create New...