Solutions
-
Lyndsey's post in Can you stop JavaScript Running with Media Queries? was marked as the answerYou should close the script inside the if statement:
<script type="text/javascript"> if (screen.width > 600){document.write("<script src='tinybox.js'></script>");} </script> Edit: the JavaScript is getting confused with the nested script blocks, so maybe it would be better to break up the nested script tag, something like this:
"<scr"+"ipt src='tinybox.js'><\/scr"+"ipt>" -
Lyndsey's post in Images stacking incorrectly in IE8 only, please help was marked as the answerThanks Charly,
You can add a float:left; declaration to #footer a to resolve your issue:
#footer a{ float:left; text-decoration:none; color:#5c5c5d; font-size:13px; } /* Styles Footer Links */ -
Lyndsey's post in Javascript code randomly stopped working? was marked as the answerYou have a JS error: Uncaught ReferenceError: prettyPrint is not defined
You need to load the prettyPrint javaScript file above the function call for that to work.
Also, you're running multiple versions of jQuery on the same page:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"> </script><script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.2.min.js" type="text/javascript"></script> You should only really use one reference to jQuery to avoid conflicts.
Edit: Nice design!
Hope this helps,
Lyndsey.
-
Lyndsey's post in Thoughts on a dream - dealing with user input was marked as the answerStoring information generated from users will require a server-side language. PHP is one of the most popular languages used today, so you may want to look in to using that. This page may be useful to you: http://net.tutsplus.com/tutorials/php/the-best-way-to-learn-php/
Before learning PHP, you may want to look in to JavaScript and getting to grips with the basics as IMO, your transition in to a server-side language (PHP) will be made easier. This website is quite cool: http://www.codecademy.com/#!/exercises/0
Hope this helps,
Lyndsey
-
Lyndsey's post in album_id in sql coming up as 0 was marked as the answerI think you're missing the variable identifier in your SQL:
mysql_query("INSERT INTO `images` VALUES ('', '".$_SESSION['user_id']."', 'album_id', UNIX_TIMESTAMP(), '$image_ext')");
Should be:
mysql_query("INSERT INTO `images` VALUES ('', '".$_SESSION['user_id']."', '$album_id', UNIX_TIMESTAMP(), '$image_ext')");
But I could be wrong!
Lyndsey.
-
Lyndsey's post in Javascript Pop-outs was marked as the answerHi Mufasa,
To get the popups to display different text for different items, you could create the text you want to display inside the HTML itself, but have it initially hidden. Then, when you hover over the text item, you can use jQuery to display the text.
Also, to use multiple popups on one page, use classes instead of ID's as ID's relate to one specific element only. Using classes, you can apply the same styles, functions etc to multiple elements.
I've set up an example here for you to look at: http://jsfiddle.net/JdX9P/2/
Hover over the 'Text Here' to see the popup take action.
Hope it's useful,
Lyndsey.
-
Lyndsey's post in Aligning input image was marked as the answerYou have a small character error where you have defined your class. You don't need to include the semicolon ; at the end of a class. It should look like this:
<form action="traitement.php" method="get"> <label for="login-id">Login:</label> <input type="text" id="login-id" name="login" /> <input type="image" src="imgs/loupe.png" class="loupe" /> </form> Let me know if this doesn't work,
Lyndsey.
-
Lyndsey's post in iCarousel content width issue was marked as the answerHave you tried changing the size of the item? I've never used this so I'm not sure it will work, but you can give it a try:
window.addEvent("domready", function() { new iCarousel("example_3_content", { idPrevious: "example_3_previous", idNext: "example_3_next", idToggle: "undefined", item: { klass: "example_3_item", size: 86 //<<<<< CHANGE THIS }, animation: { duration: 1000, amount: 4 } }); });
This link may also help: http://zendold.lojcomm.com.br/icarousel/#selflink_usage
Lyndsey.
-
Lyndsey's post in fancybox not working on server was marked as the answerIt could be because you're running multiple versions of jQuery on the same page.
If this is intentional, create a no conflict variable before initialising fancybox, or simply use only one reference to jQuery.
Example of a no conflict variable:
<script type="text/javascript"> var $j = $.noConflict(); $j('.modalbox').fancybox(); </script>
In my opinion, it's better to just use one instance of jQuery on your page so as to avoid further conflicts in the future.
Lyndsey.