15,902,750 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Jimtiger (Top 10 by date)
Jimtiger
15-Nov-13 9:28am
View
I'll give this a go and post my codepen results.
Jimtiger
15-Nov-13 9:21am
View
width - 586px
height - 483px
Jimtiger
15-Nov-13 8:48am
View
Hi Mike. I forgot to mention #left will have a picture inside. Changing #right z-index to 3 will overlap the image inside #left. #right will have text inside it, so neither can overlap each other. Do you think this will be possible with css alone? or will JavaScript be the only way.
Jimtiger
15-Nov-13 8:29am
View
vbmike - Try increasing the z-index of #right to 3 and see if that is what you are trying to achieve.
Jimtiger
23-Aug-12 16:36pm
View
Yeah that did the trick. I copy and pasted your code. Thanks for your help.
Jimtiger
23-Aug-12 13:39pm
View
I tried the second technique just out of interest but I get an error on the '$numOccurances' line...
Parse error: syntax error, unexpected T_VARIABLE
Here's the second half of code I used....
// $contents holds the file's contents
$countMe = 'id=';
$countMe .= '"thumb"'
$numOccurances = substr_count($contents, $countMe);
print($numOccurances);
Thanks this manual will be very useful.
Jimtiger
22-Aug-12 20:48pm
View
Enhzflep real nice, although I'm getting a count that's one extra 'thumb' counted from somewhere....?
I just done a 'Find' and the php script is counting the word 'thumb' from -
$countMe = 'id="thumb"'; - Cheeky devil.
So I've added a subtraction of 1 from the the count and it works perfectly!
How would you get round this one as a php pro:) Count only in the div that the thumbs sit in?
Interesting code, the top section is an important addition to the script. How come php has to 'fopen/filesize' shop-all.php for such a task, the read seems to be the magic function?
Could you recommend any sites you use for learning, referencing php magic?
Thanks
Jimtiger
20-Aug-12 22:18pm
View
The file(shop-all.php) is on my server (testing on localhost)
Content to be counted is in file shop-all.php. I hope this helps.
Jimtiger
20-Aug-12 14:40pm
View
Thanks for your quick response enhzflep, the logics here indeed ridoy (but) I haven't yet managed to implement it correctly(I'm new to php).
I echoed out $numOccurances count and noticed its count is from whats inside $text =
I would like to count the entire web page/or a portion of it where the thumbs are present. Possible?
I tried wrapping all the 'id="thumb"' inside '$text =' for counting but obviously the thumbs would no longer be visible. How would you tackle this one?
Jimtiger
19-Sep-11 13:53pm
View
Hello. I tried the code but sadly no results - That could be due to my implementation of it. I added.....
<asp:Page SmartNavigation="False" />
to the head tag, correct? If only there were some demos around to see it working. Is there any other ways to get around this? Cheers
Show More