|
|
Thread Tools | Display Modes |
|
#61
|
||
|
Eyes are my Camera
|
Quote:
__________________
|
|
|
|
||
|
#62
|
||
|
Scripting dude-volunteer
|
Quote:
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#63
|
|
|
Eyes are my Camera
|
Thanks jfriend, I'll just keep it as it is, until I figure it out myself. It looks nice anyways :P
__________________
|
|
|
|
|
#64
|
||
|
Big grins
|
Quote:
I also setup another class <div class="menu1"> to be a defferent menu on my second homepage, but when I get all these to work ,both my default homepage and my second homepage display two dropdown bars so ,what can I do ? thanks!
|
|
|
|
||
|
#65
|
||
|
Big grins
|
Quote:
|
|
|
|
||
|
#66
|
|
|
Big grins
|
speak too soon ,
now it doesnt work , after clicking on the link to the second homepage "english", the menu for the second homepage dosen't appear ,instead,the menu for the real homepage still stay there! why? pls help . thanks!
Last edited by joehawks; Mar-01-2011 at 01:48 AM. |
|
|
|
|
#67
|
|
|
Scripting dude-volunteer
|
Even though you are currently using a class on your menu, you can also add an ID (an object can have both). So, you can add id="navbar1" and id="navbar2" to the different menus and use my earlier code to control which shows where. If you want further help, then please be more specific about exactly which navbar you want to show on which pages.
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
|
#68
|
||
|
Big grins
|
Quote:
it works again now because I forgot something in top java. I put the code this way: keep the "menu" and "menu1" as classes , then use .homepage .menu1 {display: none} to hide the second menu on the default homepage; use .galleries .menu1 {display: block} to show it on the second homepage. don't know much about coding , just had a try,and it seems to be working properly. AND: Could I have a different page title for my second homepage? thanks! |
|
|
|
||
|
#69
|
||
|
Scripting dude-volunteer
|
Quote:
Code:
if (YD.hasClass(document.body, "galleries"))
{
document.title = "My Second Page Title";
}
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#70
|
||
|
Big grins
|
Quote:
|
|
|
|
||
|
#71
|
|
|
Big grins
|
Can't make it work
Here is what I am trying to achieve:
- slideshow on the default home page. - recent photos on a "recent" page. Both pages are accessed via a link in the navbar... and both do not show anything. I think I carefully followed all the steps. I also removed any other piece of script like the (awesome) html5 slideshow. So I have : - Slideshow and Recent Photos checked in the Homepage Layout dropbox. - The "DuplicateHomepage" script in Top Javascript. - In the Head Tag : Code:
<script type="text/javascript">
DuplicateHomepage("recent");
</script>
Code:
/* hide all homepage items by default on the homepage */
.homepage #recentPhotosBox,
.homepage #datesBox,
.homepage #featuredBox,
.homepage #slideshowBox,
.homepage #photoVideoBox,
.homepage #galleriesBox,
.homepage #categoriesBox,
.homepage #eventsBox,
.homepage #bioBox {display: none;}
/* on the actual default homepage, show the item(s) we want here */
.homepageDefault #slideshowBox {display: block;}
/* CSS for the recent pictures page */
.recent #recentPhotosBox {display: block;}
Philippe http://pfrize.smugmug.com |
|
|
|
|
#72
|
|
|
I'm Just the Assistant...
|
I already have multiple homepages (galleries and find) done the "old" way. Any reason I should update to this method?
|
|
|
|
|
#73
|
|
|
"tweak 'til it squeaks"
|
Don't fix something that's not broken. Why would you want to add all that extra code?
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
|
#74
|
||
|
I'm Just the Assistant...
|
Quote:
|
|
|
|
||
|
#75
|
||
|
Scripting dude-volunteer
|
Quote:
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#76
|
||
|
Big grins
|
Quote:
Thank you for your time - and for the script of course. Philippe |
|
|
|
||
|
#77
|
|
|
Onward Rocinante
|
Hi, I am attempting to completely redo my site and tried this in conjunction with the easy customizer. When I click on my 'galleries" there is nothing there. Galleries are enabled on the homepage. Sorry, I am an idiot and have not done any of this stuff in a couple of years.
|
|
|
|
|
#78
|
||
|
Scripting dude-volunteer
|
Quote:
Code:
/* on the actual default homepage, show the item(s) we want here */
.homepageDefault #slideshowBox {display: block;}
.galleries #galleriesBox,
Code:
/* on the actual default homepage, show the item(s) we want here */
.galleries #galleriesBox,
.galleries #categoriesBox,
.homepageDefault #slideshowBox {display: block;}
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#79
|
|
|
Onward Rocinante
|
That worked! Thank you. Now on to adding one for "about (aka bio)" and "contact" and getting rid of those white and green bars...
Thanks again! |
|
|
|
|
#80
|
|
|
Onward Rocinante
|
Ok, strange...it works the first time I click on "galleries" but it doesn't work when I go back to my homepage via my Onward Rocinante banner and then try to go back to galleries by clicking on "galleries" again. I don't get it.
|
|
|
|
| Tell The World! | |
| Similar Threads | Thread Starter | Forum | Replies | Last Post | ![]() |
| Stretchy slideshow customization for the Homepage | jfriend | SmugMug Customization | 854 | Jan-24-2013 01:37 PM | |
| Accidentally deleted my homepage while editing html | dfg1983 | SmugMug Customization | 4 | Aug-08-2009 05:28 PM | |
| Link to my homepage? | tsinsf | SmugMug Support | 1 | Feb-22-2009 03:04 PM | |
| Setting feature photos for homepage categories | sledgehammer | SmugMug Customization | 0 | Jan-28-2009 08:30 AM | |
| Hiding Search on homepage | Desert-Rat | SmugMug Customization | 2 | Sep-03-2007 01:51 PM | |
| Thread Tools | |
| Display Modes | |
|
|