Curtis Thompson
Forum Replies Created
-
Curtis Thompson
October 25, 2005 at 1:15 am in reply to: error occurred in plug-in contained on this page – pop-op errorhello…
hmm – worked for me here on os x / safari…which os/browser are you having problems with? i don’t have qt7 on my xp box, so i know it won’t work there…maybe that could be related to your problems somehow?
sitruc
-
Curtis Thompson
October 25, 2005 at 1:15 am in reply to: error occurred in plug-in contained on this page – pop-op errorhello…
hmm – worked for me here on os x / safari…which os/browser are you having problems with? i don’t have qt7 on my xp box, so i know it won’t work there…maybe that could be related to your problems somehow?
sitruc
-
hello…
2 ways, really…if you know that your content area will always be a fixed width and height, you can use this css way:
https://forums.creativecow.net/cgi-bin/new_read_post.cgi?forumid=16&postid=854792&pview=t
or if you want a bit more flexability because you aren’t sure of a guaranteed height, you can do something like this:
https://sitruc.com/cow/vertical_cells.html
(the latter is an example i used for something else, but it does your trick as well)
hope that helps!
sitruc
-
hello…
do you have an example you can post so that i can see the code in action that you are using?
sitruc
-
hello…
[Bret Williams] “s that a built in function, or am I to call on a script that will determine the page or directory I’m viewing?”
the $_SERVER array is a built-in array in php that has a wide variety of useful parameters. you could figure out the directory by using that same script name param and the php dirname function (https://us2.php.net/dirname)…
you can find some other useful vars by making a dummy file and putting the php info at the top:
<?= phpinfo() ?>
you’ll see all the params (and a bunch of other stuff) that php knows about each script. you can try putting the script in different dirs (say you do the above and save it as phpinfo.php) to see how the variables change…
make sense?
sitruc
-
hello…
i was going to reference you to a thread that deals with just this topic until i went back and realized that you were the one who started that thread… :-/
https://forums.creativecow.net/cgi-bin/new_read_post.cgi?forumid=16&postid=854799&pview=t#head
the example i gave there will do what you need in terms of linking together frames to load them in a specific order…did the example not make sense or do what you needed?
sitruc
-
hello…
i’d do something like this:
not on that page:
<div><a class=”navLink” href=”/retail/cretailsalesskills.php”>Retail Sales Skills</a></div>
on that page:
<div><a class=”navLinkOn” href=”/retail/cretailsalesskills.php”>Retail Sales Skills</a></div>
so then the trick becomes updating that with php to show the “On” if you’re on that page…so something like this should work:
<div><a class=”navLink<?= ($_SERVER[‘SCRIPT_NAME’] == “/retail/cretailsalesskills.php”)) ? “On” : “” ?>” href=”/retail/cretailsalesskills.php”>Retail Sales Skills</a></div>
thoughts?
sitruc
-
hello…
sorry – when you say “more than once” – do you mean over time stopping people from signing up more than once? or during the single visit?
sitruc
-
hello…
i’m sorta following you here…i think.
the active bit of the link is when you click on it and hold your mouse – so that brief second that it changes color it can be set (not too useful, but if you’re really into colors and presentation then you can control it – it would also be the color if you tabbed onto the link…
there’s no good way for css to evaluate what page it’s on and show a style accordingly. what i often do is make a copy of my link style and add “On” to the style name and then (if it’s php, etc. header), do the old if script name == page url then also echo “On” to the css class – then the right style is called for that page and it shows as on…
is that what you were thinking of? sounds like you already knew how to do it, though…
sitruc
-
hello…
better usabiility anyway – people might not watch the whole movie and they wouldn’t access to your email unless they did…might as well make it available the entire time if they want to contact you…
sitruc