|
|
Thread Tools | Display Modes |
|
#1
|
|
|
Got DNA?
|
change "save photo"
Specifically I want to make the "Save photo" LARGE and offset so people know how to download the photos. I can't seem to do this. I made the whole "other sizes" section larger but I couldn't even make it red.
http://mpmcleod.smugmug.com/gallery/1470992 If it requires it could we add Id tags for the other photo sizes? |
|
|
|
|
#2
|
||
|
I'd be happy with a cookie
|
Quote:
Code:
#exifOtherSizes a {
color: red;
}
You can't add id or class tags to items as a manual function, maybe Javascript could help you with the save photo thing. |
|
|
|
||
|
#3
|
||
|
Got DNA?
|
Quote:
I know I can't add an id. I am hoping that SM will add an id tag around "save photo" so that I can specifically modify that link. any ideas? edit: found that I was using #exifOtherSizes.a { instead of #exifOtherSizes a { so that fixed the red problem. THANKS! Last edited by mpmcleod; Jun-03-2006 at 06:13 PM. |
|
|
|
||
|
#4
|
|
|
Swimming for Them
|
Give this a try in your footer...
Code:
<script type="text/javascript">
// Make "save photo" stand out
var objElement = document.getElementById("exifOtherSizes")
if (objElement != null)
{
var str = new String(objElement.innerHTML);
str = str.replace('save photo', '<span id="makeStandOut">save photo</span>')
objElement.innerHTML = str;
}
</script>
Code:
#makeStandOut {
color: red;
font-weight: bold;
}
-Greg |
|
|
|
|
#5
|
||
|
Got DNA?
|
Quote:
|
|
|
|
||
|
#6
|
||
|
Got DNA?
|
Quote:
in CSS: #makeStandOut { font-size: 200%; color: red; font-weight: bold; } in head tag (not in Javascript section): <script type="text/javascript"> function makeStandOut() { // Make "save photo" stand out if (document.getElementById("exifOtherSizes") != null) { document.getElementById("exifOtherSizes").innerHTM L=document.getElementById("exifOtherSizes").innerH TML.replace("save photo","<span id=\"makeStandOut\">save photo</span>"); } } </script> in body: <body onLoad="makeStandOut();"> thanks for the help!!! Now I just need to make the CSS prettier (add boders, shading, etc.) to make Save Photo really pop! |
|
|
|
||
|
#7
|
||
|
Got DNA?
|
Quote:
Will have to look into the possible solutions for this. |
|
|
|
||
|
#8
|
||
|
Got DNA?
|
Quote:
<script type="text/javascript"> function makeStandOut() { // Make "save photo" stand out replaceText = new RegExp("\>save photo\<\/a\>\\s*\\|"); document.body.innerHTML=document.body.innerHTML.re place(replaceText,"class=\"makeStandOut\">save photo</a><br />"); } </script> Last edited by mpmcleod; Jun-06-2006 at 02:32 PM. |
|
|
|
||
|
#9
|
|
|
Got DNA?
|
additional features:
CSS: #showSaveDirections { font-size: 125%; font-weight: bold; font-family: Arial,sans-serif; color: red; background-color: white; border: 1px solid red; } #hideSaveDirections { display: none; } head tag: <script type="text/javascript"> function makeStandOut() { // Make "save photo" stand out replaceText = new RegExp("\>save photo\<\/a\>\\s*\\|"); if (replaceText.exec(document.body.innerHTML)) { document.body.innerHTML=document.body.innerHTML.re place(replaceText,"class=\"makeStandOut\">save photo</a><br />"); document.body.innerHTML=document.body.innerHTML.re place("hideSaveDirections","showSaveDirections"); } } </script> header: <span id="hideSaveDirections"> To save a photo right-click on "save photo" and then select "Save Target as..." or "Save Link as ..." </span> --- what this does is display a header with instructions for people to save the photos but only on pages where the option to save a photo exists. |
|
|
|
|
#10
|
||
|
Got DNA?
|
Quote:
Hmm.... will have to debug this. |
|
|
|
||
| Tell The World! | |
| Thread Tools | |
| Display Modes | |
|
|