- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
41 Posted Topics
Re: This code detects if the browser is Chrome and when it is it loads diffferent style sheet. If you test your pages on Mozilla you could have very minor differences in Chrome so you'll probably have to replace just few lines of code in the stylesheet: [CODE]<script type="text/javascript"> if (navigator.userAgent.toLowerCase().match('chrome') … | |
Hi all I've created simple javscript gallery using previous and next links. The problem is that I want fade effect between images like this: [url]http://tobia.github.com/CrossSlide/[/url] I've pasted few lines of jquery code in my javascript functions but the fade effects aren't the same. Any help will be greatly appreciated. Best … | |
Re: For disabling the up and down arrow keys try this: [CODE]<script type="text/javascript"> document.onkeydown=function(){return event.keyCode==38 || event.keyCode==40 ? false : true;} </script>[/CODE] or [CODE]<script> document.getElementById(id).onkeydown=function(){return event.keyCode==38 || event.keyCode==40 ? false : true;} </script>[/CODE] where id is the id of your form | |
Ok I made hover effect for group of five images-appearing border. But when I'm hovering the image some other two images are moving few pixels downward. [CODE]<div class="rel"> <img src="images/4wheel2.jpg" height="85" id="on"/> <img src="images/4wheel2.jpg" height="85" id="on"/> <img src="images/4wheel2.jpg" height="85" id="on"/> <img src="images/4wheel2.jpg" height="85" id="on"/> <img src="images/4wheel2.jpg" height="85" id="on"/> </div> <div … | |
This problem is about passing parameters between functions(define neighbour elements and acess these elements) Here is some HTML [CODE] <ul class="listing"> <li><a href="imgs/eli.jpg" id="1" class="lightbox" onclick="defineNeighbours(this.id);"><img src="thumbs/eli_t.jpg" width="150" height="100" class="images" /></a></li> <li><a href="imgs/ggallin.jpg" id="2" class="lightbox" onclick="defineNeighbours(this.id);"><img src="thumbs/ggallin_t.jpg" width="150" height="100" class="images" /></a></li> <li><a href="imgs/jontarata.jpg" id="3" class="lightbox" onclick="defineNeighbours(this.id);"><img src="thumbs/jontarata_t.jpg" width="150" height="100" class="images" … | |
Just a little problem with functions for previous and next images in a lightbox type of gallery created by me. The src of a given image is taken form href attribute of a link. I need the src of the next or previous image to be loaded dynamically maybe using … | |
My idea is to create a gallery in which the thumbnails have rounded corners. This works in every browser except IE because it won't support CSS3. Is there any hack for creating rounded corners for thumbnails in IE? Of course I'm not sure my HTML/CSS is good enough so take … | |
Here is code for hexagonal and pentagonal numbers. I need type that stores something bigger than 10 billion. Double works fine to about 8.4 billion. Of course I tried using long long and unsigned long long but it's still not working. Please repair this code because it overflows now matter … | |
In the following problem I have to find the number > 40755 which is triangular,pentagonal and hexagonal. The formulas for these type of numbers are given below. As I read every hexagonal number is also triangular so we have to compare pentagonal with hexagonal numbers. This algorithm gives 9 digit … | |
It is a very interesting question about downloading flash files embeded in Video JS from HTML 5 standart. Here we have 2 flash pages. 1: [url]http://resursi.e-edu.bg/content/math3/runtime/rtleo/scorm-flo.html?sco=../../content/uc_m5_l008.flo&width=788&height=553&recording=true[/url] 2.[url]http://resursi.e-edu.bg/content/s1/runtime/rtleo/scorm-flo.html?sco=../../content/uc_s3_l093.flo&width=788&height=553&recording=true[/url] As you see we have different id's uc_m5_1008 and uc_s3_1093; Interestingly we have .flo format?! and video js in a script file. Also … | |
In these problem I have to find triangular number by the number of it's divisors. The program takes about 0.65 seconds to find the first triangular number with >100 divisors and about 87 seconds for the number with >200 divisors which means that my algorithm is very inefficient. Any help … | |
This is a fragment of a program for finding palindrome numbers.Every checked number is a string which is reversed...and I'm using array of strings which isn't done right. Any help will be greatly appreciated. [CODE]#include <stdio.h> #include <string.h> void isPalindrome(char *str1[],int l){ int str1size = strlen(str1[l]); int n; int misMatch … | |
This is a program for getting the sum of prime numbers of given range. The problem is that it would take hours if the limit is about 1000000. I've read about the sieve of Eratosten but having difficulties with implementing it. Could someone help to make this piece of code … | |
There is a working code about a program in which you should create differen Cat objects with name and color parameter and apply method to the objects. The problem is that I get the method working for only the last cat [CODE]public class Cats { public static String name; public … | |
Here is a PHP code that writes a string on the bottom of a given image. I want to have the image with the string on it to be saved in a folder. The problem is that this script copies the image without the stamped text. Here is the code: … | |
I'm working on an entertainment site and there is some design mistake which I made. But everything looks good if zoomed out in 83% on chrome and 75% on mozilla and IE. What is the solution to resize everything or there is another way? | |
Ok I created some flash rotator-onclick event to change swf files. But this won't work in IE because the javascript isn't able to create a closing embed tag. Here is the script: [CODE]<script type="text/javascript"> var flashNumber = 0; var items = 3; var i = 0; films = new Array(items) … | |
Ok if you visit [url]http://www.miniclip.com[/url] you'll notice that there is some kind of flash rotator on the home page. This is my code attempt to move between preloaded swf animations using javascript. I've tried giving id of the object or embed but this won't help. Of course this is not … | |
I need javascript to trigger the combination of ctrl + minus. Is it possible. I need this because the design of the webpage I'm working on is looking much better at 83 % zoom which couldn't be achieved by CSS zoom property in mozzila firefox. | |
Hi guys I've stumbled upon a really annoying problem in positioning 4 oval boxes(containers) (in 2 rows). In FF and Chrome it looks exactly how I want but in IE the boxes align about 50px left. If I give margin or padding left no matter of the values it shifts … | |
This is some PHP search code with some mistake. $run gives nothing where $run = mysql_query($construct); It gives: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\xampp\search\search2.php on line 39 No results found. [CODE]<?php //get data $button = $_GET['submit']; $search = $_GET['search']; if(!$button) echo "You didn't submit … | |
Hi all. I'm ccentering a searchbox in a container and there are some differences between mozzila and IE. I used the following:[CODE] <!--[if IE]> <style>#menu{ height: 3px;} .navigate{padding-left: 35px;} .text{ padding-left: 55px;} .form{ margin-top: -55px;} </style> <![endif]--> [/CODE] the changes for .navigate and #menu are sucessfull but nothing changes about … | |
Re: Note that Math.random() can give equal results so you have to use variations of the variable index in order to get different pictures in each cell.This works perfect for me: [CODE]<html> <head> <meta http-equiv='Content-Type' content='text/html;charset=ISO-8859-1'> <title><%WindowTitle%></title> <style type='text/css'> td.title { height: 150px; width: 160px; padding: 10px; border: 3px solid #666666; … | |
Hi all. I'm working on an entertainment site and I need some script for displaying random flash game. I want the following: the user is playing some game and when he clicks on a dice icon the game dissappears and new game appears on the same place because I don't … | |
Ok I have a linked list which have to read from binary file and to write in binary files. This is the function about the reading from keyboard: [CODE]short readElement( Node * newE) { int b,e,m; if ( newE == NULL ) return 1; do { printf("\n Registration number:"); scanf("%s", … | |
Re: This works perfect for me: [CODE]<html> <head> <title>Test</title> <style type="text/css"> table.background {background:blue;} p { color: green; } </style> <script type="text/javascript"> function change(id) { document.getElementById("background").style.backgroundColor = "white"; document.getElementById("fonter").style.color = "black"; document.getElementById("fontes").style.color = "black"; } function changeb(id) { document.getElementById("background").style.backgroundColor = "black"; document.getElementById("fontes").style.color = "white"; document.getElementById("fonter").style.color = "white"; } </script> <body> <table id="background" … | |
Re: Ok this is the HTML code about the divs where mask is the div which is blackening the screen: [CODE]<div id="boxes"> <!-- Start of Login Dialog --> <div id="dialog1" class="window"> <div class="d-header"> <input type="text" value="username" onclick="this.value=''"/><br/> <input type="password" value="Password" onclick="this.value=''"/> </div> <div class="d-blank"></div> <div class="d-login"><input type="image" alt="Login" title="Login" src="images/login-button.png"/></div> </div> … | |
Hi all. I've tried to make a simple hover effect about small images but it won't work. I also tried to make the following script: 2 seconds after page loading image1 changes 2 seconds after that image1 returns to back state and image2 changes and etc. Can someone help? Best … | |
Re: Try this [CODE] <html> <head> <script type="text/javascript"> function collap(id) { if (document.getElementById) { // DOM3 = IE5, NS6 if (document.getElementById(id).style.display == "none"){ document.getElementById(id).style.display = 'block'; } else { document.getElementById(id).style.display = 'none'; } } else { if (document.layers) { if (document.id.display == "none"){ document.id.display = 'block'; } else { document.id.display = … | |
Re: Try this: [CODE]<html> <body> <embed src="music/song.mp3" autostart="true" loop="false" width="350" height="200"> </body> </html>[/CODE] or this for better look [CODE]<html> <head> <script> document.write('<TABLE BORDER="3" CELLSPACING="0" CELLPADDING="0" BORDERCOLOR="#99CCFF" BORDERCOLORLIGHT="#DBEDFF" BORDERCOLORDARK="#5B7997"><tr><td>'); document.write('<object id="MediaPlayer1" width="300" height="45" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902" standby="Loading Microsoft Windows Media Player..." type="application/x-oleobject">'); document.write('<param name="FileName" value="music/song.mp3">'); document.write('<param name="animationatStart" value="false">'); document.write('<param name="transparentatStart" value="true">'); document.write('<param name="autoStart" … | |
Re: Use this javascript to detect the browser if it is a chrome browser you should use another CSS where you manually adjust the pixels(It shold be the same stylesheet and you just change the lines about the container). Let's your chrome CSS file is called stylechr.css [CODE] <script type="text/javascript"> if … | |
Re: You can use the image as a link [CODE]<a href="..."><img src="images/images/images/sign-in.gif" border="0"></a>[/CODE] | |
I'm working on a site and I want to give the users option to change the background image. Of course client-side. My default background-image is put in CSS file. [CODE]body { background-image: url(images/back.jpg); overflow: visible; width: 1260px; }[/CODE] I've tried to make some javascript trigering the change [CODE]var img = … | |
I'm trying to place flags on the upper left corner on site I'm making. I made them look proper in IE7 and FF but they won't show right in Google Chrome. Is there alternative way of positioning or some Chrome CSS Hack. The fg id's are about the 3 flags. … | |
As kind a newbie I have a simple question. Having a textfield with background-color and border I want to give opacity value only to the background and not to the border: [CODE]#textfield { background-color:#2875DE; border:2px solid #2cb823; } #textfield.background-color { filter:alpha(opacity=60); }[/CODE] This obviously won't work and any ideas of … | |
I'm trying to make a snake game first on javascript then I'll rewrite it on maybe Flash. After reading some sources I've got some questions. First of all let's see the alghorithm of creating playfield: [CODE]<script type="text/javascript"> var height = 20; //height of the game area var width = 30; … | |
Pretty interesting problem about linked list. This program is about autobuses. Each autobus is given by brand, registration number, number of seats, kilometres and year when the bus was made. The program is organised as menu and when you hit number it calls some function. Problematic function: it should NOT … | |
I'm trying to make a javascript game which counts mouse click for ten seconds. The problem is that the script ignores the onclick event somehow.Here is the code. [CODE] <html> <head> <script type="text/javascript"> var c=0; var t; var timer_is_on=0; function timedCount() { document.getElementById('but').value=c; c=c+1; t=setTimeout("timedCount()",1000); if (c>10) {alert('over'); c=0;} } … | |
Ok I'm javascript newbie and I have to make script for displaying random images after click on dice picture. The problem is that the script shows only only 1 picture after the clcik and it won't continue with the next random images. [CODE]<html> <head> <script type="text/javascript"> function randomize(){ var delay … |
The End.