1,080,324 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?

Posts by suhaildawood

suhaildawood
Newbie Poster
18 posts since Feb 2011
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

So something like this?
http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm

If you want something like that in a menu, you will need to use jQuery/javascript

suhaildawood
Newbie Poster
18 posts since Feb 2011
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0
suhaildawood
Newbie Poster
18 posts since Feb 2011
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0
suhaildawood
Newbie Poster
18 posts since Feb 2011
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Yes! Thanks SO much airshow! It finally works. Now, i'm going to go over how you solved the problem and learn from it - I wish I was as good with javascript as you! Thanks again :)

suhaildawood
Newbie Poster
18 posts since Feb 2011
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

CSS box-shadow has a lot of features, and I was looking into it the other day. This website: http://www.css3.info/preview/box-shadow/ shows how you can edit the values to customize the shadow. I tried working on the link that you gave me and I was able to make the shadow for the top and sides, but not the bottom. The values are combined for directions. It is hard to explain but one value can be 5px or -5px (e.g. 5px for top and -5px for bottom) but they cannot be both. Here is what I got out of it: http://jsfiddle.net/z9mEE/

suhaildawood
Newbie Poster
18 posts since Feb 2011
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Could we have the html for this? It would make it a lot easier to determine exactly what is the problem.

suhaildawood
Newbie Poster
18 posts since Feb 2011
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

With CSS, you can edit the opacity of a div, but everything within that div (such as a content) will also be set at the same opacity. What you could do it make a 50x50 square in photoshop, lower the opacity, make sure there is no background, and save that as a PNG file. Then, create your content div and use this:

#content {
	width: [width];
	height: [height];
	background-image: url('[path to png]');
	backrgound repeat: repeat;
	margin: auto [to center the div];
	margin-top: [how far div is from top of page];
	border-radius: [# of pixels];
	box-shadow: [add this in];
}

Please note that some of this is CSS3, so it will only show up in a compatible browser. Also, I added in the border-radius and box-shadow, looking at the link you gave. Remember, make the CSS3 stuff browser specific (e.g. -webkit-box-shadow)

Hope this helps!

suhaildawood
Newbie Poster
18 posts since Feb 2011
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

I agree with stbuchok, if you would like it more simple, jQuery's .css() is very easy to implement. Here is a link: http://api.jquery.com/css/

suhaildawood
Newbie Poster
18 posts since Feb 2011
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Most likely, the problem is that the links cannot be referenced, check your files and paths. Also, posting the code would help determine the problem.

suhaildawood
Newbie Poster
18 posts since Feb 2011
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Thanks everyone for replying! Airshow, your solution with the opacities worked perfectly! Thanks. Now, there is a little issue with the rotating. When you click the #right div once, it rotates 180, but after that, onclick, just the opacities alternate and the rotate does not happen.
Thanks again

suhaildawood
Newbie Poster
18 posts since Feb 2011
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Hi, thanks for your reply. Unfortunately, it still does not work. the #right div rotates, but the #home and #about are unchanged. Also, if you click it again nothing happens.

suhaildawood
Newbie Poster
18 posts since Feb 2011
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

I am having some trouble with this code. I want have an onclick function on a div and I want to call this function. Only the 'if' section of the code works. If the #about opacity is anything other than 0.47, it still executes the 'if' code, but not the 'else'

function opacityabout() {
		if ($('#about').css("opacity", "0.47")) {
			$('#about').css("opacity", "1");
			$('#home').css("opacity", "0.47");
			$('#right').css("-webkit-transform", "rotate(180deg)");
		}
		else {
			$('#about').css("opacity", "0.47");
			$('#home').css("opacity", "1");
			$('#right').css("-webkit-transform", "rotate(180deg)");
		}
		}

My HTML is set up like this:

<div id="right" onclick="opacityabout()"> </div>

Thanks

suhaildawood
Newbie Poster
18 posts since Feb 2011
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Hello,

I am really new to PHP, so sorry if this is way too basic. I followed this tutorial: http://net.tutsplus.com/tutorials/php/online-file-storage-with-php/ and I created a simple online storage app for my website. How would I be able to make it so that I can delete the stored files?

Thanks

suhaildawood
Newbie Poster
18 posts since Feb 2011
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Hi, I am trying to add a background image in turing, can somebody so me how I would be able to do this?

suhaildawood
Newbie Poster
18 posts since Feb 2011
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

how would I go about adding this into a .asp page? I want the user to click a button, and when the button is clicked, it will show the random record from the table in the database. How would I add this code in? I'm sorry, really not used to using ASP.NET with this database stuff.

suhaildawood
Newbie Poster
18 posts since Feb 2011
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Thanks so much - really helped :)

suhaildawood
Newbie Poster
18 posts since Feb 2011
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

I am creating a part of a game in ASP.NET (VB). There is a database with four tables (topics), and in those tables there are three items. I need the application to be able to show a random item (for example the three items are 1, 2, 3 - I just want one random entry from 2) within the table and show it on the app. There also needs to be a option to check so that that entry does not show up again when the user clicks for another random entry. How would I go about doing that?

suhaildawood
Newbie Poster
18 posts since Feb 2011
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0
 
© 2013 DaniWeb® LLC
Page generated in 0.1067 seconds using 2.58MB