Moderator: Help Desk Team

mitchellbravo wrote:As far as I understand, that's not possible- all comic pages have the same template.
(I tried to figure out a way around this, as I wanted my site to open on the most recent comic but have the large navigation menu at the top just for that one page. But the only way to have the large menu there would mean that it would be there on every other comic page which would be annoying for someone reading through the archive. )
darkenergy wrote:mitchellbravo wrote:As far as I understand, that's not possible- all comic pages have the same template.
(I tried to figure out a way around this, as I wanted my site to open on the most recent comic but have the large navigation menu at the top just for that one page. But the only way to have the large menu there would mean that it would be there on every other comic page which would be annoying for someone reading through the archive. )
For the latest page, I just revamped the News/Welcome page and stuck the full view of the latest comic there. Of course if you want your main page to have a splash screen this would kill it.
Considering that the pages are auto-generated, I don't think you could do it here. They each point to a unique HTML so I bet it's an option...if you're doing your own hosting.

mitchellbravo wrote:Huh, I tried to do that but couldn't figure out how to get the first/previous etc buttons to show up. Maybe I ought to try fiddling with it some more.
if(page_id = PAGE_ID_HERE) {
document.bgColor = '#ffffff';
document.getElementById("whatever").style.color="#000000";
}
else if(page_id = OTHER_PAGE_ID_HERE) {
document.bgColor = '#000000';
}
if(page_id = PAGE_ID_HERE || page_id = OTHER_PAGE_ID_HERE) {
document.bgColor = '#ffffff';
}
eishiya wrote:I'm rusty with Javascript, so this code is to be taken as a guide only. I didn't give you the regex pattern to use because after messing around with it for a while and not getting a working solution, I decided that doing this for a stranger for free isn't the best use of my evening. Perhaps someone else here is more kind.

mitchellbravo wrote:*starts the chant* EISHIYA! EISHIYA! EISHIYA! EISHIYA!
<script type="text/javascript">
var pageID = {COMIC_ID};
if (pageID == PAGE_ID_HERE) {
document.bgColor = '#ff0000'; //background colour set to whatever you want. Rinse and repeat for other customization.
document.getElementById("navigation").style.borderWidth = "10px";
document.getElementById("navigation").style.borderColor = "#ff0000";
//and so on :D
}
</script>Users browsing this forum: No registered users and 1 guest