![]() |
|
| Domain Name Sales | Domain Software | Calculate UK Domain Drop Dates | Domain Registration | NameDrive | Domain Parking | Subscribe to our Domains For Sale newsletter |
| | ||||||
| Home | Register | Rules | Membership Upgrade | Domains For Sale | Domain Name Escrow | Mark Forums Read | Domain Classified | Chat Room |
| Scripts and Coding PHP, MySQL, scripts |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
![]() | Is this possible in PHP (or other languages)
At the moment i can retrieve information from a DB and display it nicely in a vertical line of boxes (some boxes with extra information as needed). I basically need a version of this with exactly the same information, but instead of a top-down list of divs (boxes), I need them to be displayed going around a circle (starting top centre, going clockwise). Does anyone know if this is possible? And how easy would it be? Any scripts? It's already taken me ages to get the list pulling the appropriate info and displaying in a straight line. Thanks for any help/direction. Added: The number of divs displayed will be variable depending on what's in the DB. So I can't count on their being a certain number. Therefore the 'circle' would need to re-size in some way?!
__________________ Connect with me @ TW:LI:FB | MyWeb | D/L domains4sale | Morecambe London Student Forums Student Books UK promotions agencies Last edited by woopwoop; 05-08-2010 at 11:39:15 PM. |
| |
| | #2 (permalink) |
![]() |
You could do it in Javascript or Ajax (JS + PHP), but don't think PHP alone would produce nice of even elegant results. You also have the issue of some of your time places being long and over writing others to consider. You could look at Tag Cloud code for idea's on position, or clock face code in Javascript like http://www.dynamicdrive.com/dynamicindex6/analog.htm and then strip the code down and latch in PHP and you'd be away pretty quickly. I can't think of an easy way tho.
__________________ Browse: |
| |
| | #3 (permalink) |
![]() |
Cheers Skinner - will take a look at the JS. It's pretty tricky to accomplish what I wanted so may have to change my expectations. Many thanks.
__________________ Connect with me @ TW:LI:FB | MyWeb | D/L domains4sale | Morecambe London Student Forums Student Books UK promotions agencies |
| |
| | #4 (permalink) |
![]() |
I don't know php so feel free to correct me! Could you design a circle in html/css and put php calls in the relevant divs? |
| |
| | #5 (permalink) |
![]() |
Whether you use JS, AJAX, PHP or anything else, the resulting output will need to be DIV's or other tags that you position with CSS (unless you output as a graphic). If you use the item number in the ID of the DIV you could use a dynamically created style sheet to position the DIV's according to the number of results returned. If you have a known number of results you could cache a few common style sheets and just reference the desired CSS file.
__________________ Alex Monaghan - Drop Catch & Drop Lists - PM for details Online Accounting|Pine Furniture|Barbie |
| |
| | #6 (permalink) | ||
![]() | Quote:
Quote:
The initial size of circle and position of main divs would depend on: 1. number of divs 2. size of each div (based on div content, and if there are 0-2 extra divs inside that div) Divs could have a fixed width, but as they are positioned around around the circle, some of the corner positions would be adjusted for the fact they are on the 'left' side of the circle, or on the top or bottom, whereas those divs on the right would have a position where the top left corner of the div could be on the circumference. I think I'm best to save this part for a future project. I'm just so happy that I am getting this to work perfectly (so far) in a linear (top-down) design. Probably best to quit while I'm ahead! Thanks for your help.
__________________ Connect with me @ TW:LI:FB | MyWeb | D/L domains4sale | Morecambe London Student Forums Student Books UK promotions agencies | ||
| |
| | #7 (permalink) |
![]() |
If you have a PHP file as the CSS file and pass the number of results returned you can then do the maths for the corner positions and output CSS rather than HTML. Just run the DB query before you start outputting the main HTML so you have the count saving a duplicated SQL query in the CSS PHP.
__________________ Alex Monaghan - Drop Catch & Drop Lists - PM for details Online Accounting|Pine Furniture|Barbie |
| |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Domain Name Community | Replies | Last Post |
| PHP Sockets Help | chrisvaughanuk | Scripts and Coding | 7 | 24-07-2010 07:57:49 PM |
| .Tel to Launch IDNs in 16 Languages in June - Domain Name Wire (blog) | RSS | Domain Name News | 0 | 30-03-2010 03:59:01 PM |
| PHP include in a Smarty Template | admin | Scripts and Coding | 1 | 13-05-2008 06:37:26 AM |